Class: Qt::StackedWidget
- Inherits:
-
Object
- Object
- Qt::StackedWidget
- Includes:
- QtEnumerable
- Defined in:
- lib/ruber/qt_sugar.rb
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (Object) each
Calls the block for each widget in the stack, or returns an enumerator if no block is given.
- - (Boolean) empty?
Instance Method Details
- (Object) each
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 (i)} else to_enum end end |
- (Boolean) empty?
725 726 727 |
# File 'lib/ruber/qt_sugar.rb', line 725 def empty? self.count == 0 end |