Class: Qt::TabWidget

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

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



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

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

#clearObject



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

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

#tabsObject

return the collection of tabs.



278
279
280
# File 'lib/qtext/extensions.rb', line 278

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