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