class Shirka::Qt::ListItemController
Public Instance Methods
id()
click to toggle source
# File lib/shirka/qt/list_item/controller.rb, line 18 def id view.id end
init(data)
click to toggle source
# File lib/shirka/qt/list_item/controller.rb, line 5 def init(data) @text = data.to_s end
on_component_adding(data=nil)
click to toggle source
# File lib/shirka/qt/list_item/controller.rb, line 22 def on_component_adding(data=nil) parent.on_component_added self, id end
on_double_clicked()
click to toggle source
# File lib/shirka/qt/list_item/controller.rb, line 26 def on_double_clicked end
view()
click to toggle source
# File lib/shirka/qt/list_item/controller.rb, line 14 def view @view ||= view_class.new self, @text end
view_class()
click to toggle source
# File lib/shirka/qt/list_item/controller.rb, line 9 def view_class name = self.class.to_s.sub(/Controller$/, 'View') Object.const_get name rescue ::Shirka::Qt::ListItemView end