Class: Qt::TabWidget

Inherits:
Object show all
Defined in:
lib/qtext/extensions.rb

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



286
287
288
# File 'lib/qtext/extensions.rb', line 286

def []( index )
  self.widget( index )
end

#clearObject



290
291
292
# File 'lib/qtext/extensions.rb', line 290

def clear
  remove_tab( count - 1 ) while count > 0
end

#tabsObject

return the collection of tabs.



282
283
284
# File 'lib/qtext/extensions.rb', line 282

def tabs
  tabs = (0...count).map{|i| self.widget( i ) }
end