Class: Qt::StackedWidget

Inherits:
Object show all
Includes:
QtEnumerable
Defined in:
lib/ruber/qt_sugar.rb

Direct Known Subclasses

Ruber::Workspace::StackedWidget

Instance Method Summary collapse

Instance Method Details

#eachObject

Calls the block for each widget in the stack, or returns an enumerator if no block is given



718
719
720
721
722
723
# File 'lib/ruber/qt_sugar.rb', line 718

def each
  if block_given?
    count.times{|i| yield widget(i)}
  else to_enum
  end
end

#empty?Boolean

Returns:

  • (Boolean)


725
726
727
# File 'lib/ruber/qt_sugar.rb', line 725

def empty?
  self.count == 0
end