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