Class: RUI::GuiBuilder::Action

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

Overview

Menu or toolbar action.

This tag must be a child of a menu or toolbar descriptor.

Instance Method Summary collapse

Methods included from RUI::GuiBuilder

build, #build, #builder, #setup_widget

Instance Method Details

#create_element(window, parent, desc) ⇒ Object



89
90
91
92
93
94
95
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 89

def create_element(window, parent, desc)
  action = window.action_collection[desc.opts[:name]]
  if action
    parent.add_action(action)
  end
  action
end