Class: RUI::GuiBuilder::ToolBar

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

Overview

A toolbar.

This tag must be a child of a gui descriptor.

Instance Method Summary collapse

Methods included from RUI::GuiBuilder

build, #build, #builder, #setup_widget

Instance Method Details

#create_element(window, parent, desc) ⇒ Object



149
150
151
152
153
154
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 149

def create_element(window, parent, desc)
  tb = Qt::ToolBar.new(desc.opts[:text].to_s, parent)
  tb.object_name = desc.opts[:name].to_s
  parent.add_tool_bar(Qt::TopToolBarArea, tb)
  tb
end