Class: RUI::GuiBuilder::Tab::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/rui/toolkits/qtbase/gui_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, text) ⇒ Helper

Returns a new instance of Helper.



285
286
287
288
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 285

def initialize(parent, text)
  @parent = parent
  @text = text
end

Instance Method Details

#add_widget(widget) ⇒ Object



290
291
292
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 290

def add_widget(widget)
  @parent.add_tab(widget, @text)
end