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



172
173
174
175
176
177
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 172

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