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



414
415
416
# File 'lib/cosmos/gui/qt.rb', line 414

def currentWidget
  self.widget(self.currentIndex)
end

#tab(index) ⇒ Object



401
402
403
# File 'lib/cosmos/gui/qt.rb', line 401

def tab(index)
  widget(index)
end

#widgetsObject Also known as: tabs



405
406
407
408
409
410
411
# File 'lib/cosmos/gui/qt.rb', line 405

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