Class: Qt::TabWidget

Inherits:
Object show all
Defined in:
lib/cosmos/gui/qt.rb

Direct Known Subclasses

Cosmos::TabbookWidget

Instance Method Summary collapse

Instance Method Details

#currentWidgetObject Also known as: currentTab



446
447
448
# File 'lib/cosmos/gui/qt.rb', line 446

def currentWidget
  self.widget(self.currentIndex)
end

#tab(index) ⇒ Object



433
434
435
# File 'lib/cosmos/gui/qt.rb', line 433

def tab(index)
  widget(index)
end

#widgetsObject Also known as: tabs



437
438
439
440
441
442
443
# File 'lib/cosmos/gui/qt.rb', line 437

def widgets
  all = []
  (0...self.count()).each do |index|
    all << self.widget(index)
  end
  all
end