Class: RUI::GuiBuilder::Button
- Inherits:
-
Widget
show all
- Defined in:
- lib/rui/toolkits/qtbase/gui_builder.rb
Overview
Instance Method Summary
collapse
Methods inherited from Widget
#create_element
build, #build, #builder, #setup_widget
Instance Method Details
#factory(desc) ⇒ Object
359
360
361
362
363
364
|
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 359
def factory(desc)
Factory.new do |parent|
KDE::PushButton.new(KDE::Icon.from_theme(desc.opts[:icon]),
desc.opts[:text], parent)
end
end
|