Class: Shirka::Qt::ListView
Instance Attribute Summary
Attributes inherited from View
Instance Method Summary collapse
Methods inherited from View
#init, #initialize, #on_component_added, #on_view_added, #style, #widget
Methods included from Eventalk
#add_watcher, #fire, #forward, #watch, #watchers
Constructor Details
This class inherits a constructor from Shirka::View
Instance Method Details
#build(widget) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/shirka/qt/list/view.rb', line 9 def build() #Double click event .connect(SIGNAL "itemDoubleClicked(QListWidgetItem*)") do |item| controller.on_double_clicked item.object_id end end |
#on_view_adding(view, slot = nil) ⇒ Object
16 17 18 19 |
# File 'lib/shirka/qt/list/view.rb', line 16 def on_view_adding(view, slot=nil) .addItem view. .scrollToBottom end |
#widget_class ⇒ Object
5 6 7 |
# File 'lib/shirka/qt/list/view.rb', line 5 def ::Qt::ListWidget end |