Class: RUI::GuiBuilder::Tab

Inherits:
Object show all
Includes:
RUI::GuiBuilder
Defined in:
lib/rui/toolkits/qtbase/gui_builder.rb

Overview

An individual tab in a tab_widget.

This tag must be a child of tab_widget descriptor.

Defined Under Namespace

Classes: Helper

Instance Method Summary collapse

Methods included from RUI::GuiBuilder

build, #builder, #setup_widget

Instance Method Details

#build(window, parent, desc) ⇒ Object



295
296
297
298
299
300
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 295

def build(window, parent, desc)
  desc.children.each do |child|
    b = builder(child.tag).new
    b.build(parent, Helper.new(parent, desc.opts[:text]), child)
  end
end