Class: Shirka::Qt::TabView

Inherits:
View
  • Object
show all
Defined in:
lib/shirka/qt/tab/view.rb

Instance Attribute Summary

Attributes inherited from View

#controller, #data, #label

Instance Method Summary collapse

Methods inherited from View

#build, #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

#on_view_adding(view, slot = nil) ⇒ Object



9
10
11
# File 'lib/shirka/qt/tab/view.rb', line 9

def on_view_adding(view, slot=nil)
  widget.addTab view.widget, view.label
end

#widget_classObject



5
6
7
# File 'lib/shirka/qt/tab/view.rb', line 5

def widget_class
  Qt::TabWidget
end