Class: KDE::ComboBox

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) each(&blk)

Calls the block for each item. If no block is given, returns an Enumerator which does the same



292
293
294
# File 'lib/ruber/kde_sugar.rb', line 292

def each &blk
  blk ? items.each(&blk) : items.each
end

- (Object) items

Returns an array containing the text of all items in the combo box



284
285
286
# File 'lib/ruber/kde_sugar.rb', line 284

def items
  count.times.map{|i| item_text(i)}
end