Class: KDE::ComboBox

Inherits:
Object show all
Includes:
ListLike
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Defined Under Namespace

Classes: Item

Instance Method Summary collapse

Methods included from ListLike

included, #reset_from_a, #select_item

Instance Method Details

#create_item(text, data) ⇒ Object



540
541
542
# File 'lib/rui/toolkits/qtbase/qt.rb', line 540

def create_item(text, data)
  add_item(text, Qt::Variant.from_ruby(data))
end

#current_itemObject



544
545
546
# File 'lib/rui/toolkits/qtbase/qt.rb', line 544

def current_item
  item(current_index)
end

#item(i) ⇒ Object



548
549
550
# File 'lib/rui/toolkits/qtbase/qt.rb', line 548

def item(i)
  Item.new(item_data(i).to_ruby)
end