Class: Qt::Widget

Inherits:
Object show all
Includes:
Layoutable
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Instance Attribute Summary

Attributes included from Layoutable

#main_layout, #owner

Instance Method Summary collapse

Methods included from Layoutable

#add_accessor, #add_layout, #add_widget, #buddies

Instance Method Details

#setGUI(gui) ⇒ Object



527
528
529
530
531
532
# File 'lib/rui/toolkits/qtbase/qt.rb', line 527

def setGUI(gui)
  RUI::GuiBuilder.build(self, gui)
  buddies.each do |label, buddy|
    label.buddy = owner.__send__(buddy)
  end
end