Class: Qt::TabWidget
Instance Method Summary collapse
- #[](index) ⇒ Object
- #clear ⇒ Object
-
#tabs ⇒ Object
return the collection of tabs.
Instance Method Details
#[](index) ⇒ Object
281 282 283 |
# File 'lib/qtext/extensions.rb', line 281 def []( index ) self.( index ) end |
#clear ⇒ Object
285 286 287 |
# File 'lib/qtext/extensions.rb', line 285 def clear remove_tab( count - 1 ) while count > 0 end |
#tabs ⇒ Object
return the collection of tabs.
277 278 279 |
# File 'lib/qtext/extensions.rb', line 277 def tabs tabs = (0...count).map{|i| self.( i ) } end |