Class: KDE::ComboBox
- Includes:
- QtEnumerable
- Defined in:
- lib/ruber/kde_sugar.rb
Instance Method Summary collapse
-
#each(&blk) ⇒ Object
Calls the block for each item.
-
#items ⇒ Object
Returns an array containing the text of all items in the combo box.
Instance Method Details
#each(&blk) ⇒ Object
Calls the block for each item. If no block is given, returns an Enumerator
which does the same
276 277 278 |
# File 'lib/ruber/kde_sugar.rb', line 276 def each &blk blk ? items.each(&blk) : items.each end |
#items ⇒ Object
Returns an array containing the text of all items in the combo box
268 269 270 |
# File 'lib/ruber/kde_sugar.rb', line 268 def items count.times.map{|i| item_text(i)} end |