Class: Qt::Dialog
- Includes:
- Layoutable
- Defined in:
- lib/rui/toolkits/qt/qt.rb
Instance Attribute Summary
Attributes included from Layoutable
Instance Method Summary collapse
Methods included from Layoutable
#add_accessor, #add_layout, #add_widget, #buddies
Instance Method Details
#setGUI(gui) ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/rui/toolkits/qt/qt.rb', line 108 def setGUI(gui) self.window_title = gui.opts[:caption] layout = Qt::VBoxLayout.new(self) = Qt::Widget.new(self) .owner = self .setGUI(gui) = Qt::DialogButtonBox.new .(Qt::DialogButtonBox::Ok) .(Qt::DialogButtonBox::Cancel) layout.() layout.() .on(:accepted) { fire :ok_clicked; accept } .on(:rejected) { reject } end |