ComboBoxEx Class Reference

Convenience methods for combo box. More...

#include <comboboxex.h>

Public Member Functions

 ComboBoxEx (QComboBox &comboBox)
 
QStringList allItems () const
 
bool removeCurrentItem ()
 Removes currently selected item. More...
 
bool removeItem (const QString &item)
 Removes item that matches specified one. More...
 
void setCurrentOrAddNewAndSelect (const QString &item)
 
void setItemsSorted (QStringList items)
 

Detailed Description

Convenience methods for combo box.

Definition at line 32 of file comboboxex.h.

Member Function Documentation

bool ComboBoxEx::removeCurrentItem ( )

Removes currently selected item.

Returns
true if item was in combobox data source.

Definition at line 47 of file comboboxex.cpp.

bool ComboBoxEx::removeItem ( const QString &  item)

Removes item that matches specified one.

Returns
true if item was in combobox data source.

Definition at line 52 of file comboboxex.cpp.


The documentation for this class was generated from the following files: