krita
SqueezedComboBox Class Reference
#include <squeezedcombobox.h>
Inherits QComboBox.
Detailed Description
This widget is a QComboBox, but then a little bit different.It only shows the right part of the items depending on de size of the widget. When it is not possible to show the complete item, it will be shortened and "..." will be prepended.

This is how it looks
Definition at line 82 of file squeezedcombobox.h.
Public Member Functions | |
SqueezedComboBox (QWidget *parent=0, const char *name=0) | |
virtual | ~SqueezedComboBox () |
bool | contains (const QString &text) const |
void | insertSqueezedItem (const QString &newItem, int index) |
QString | itemHighlighted () |
virtual QSize | sizeHint () const |
Constructor & Destructor Documentation
SqueezedComboBox::SqueezedComboBox | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Constructor.
- Parameters:
-
parent parent widget name name to give to the widget
Definition at line 60 of file squeezedcombobox.cpp.
SqueezedComboBox::~SqueezedComboBox | ( | ) | [virtual] |
Member Function Documentation
void SqueezedComboBox::insertSqueezedItem | ( | const QString & | newItem, | |
int | index | |||
) |
This inserts a item to the list.
See QComboBox::insertItem() for detaills. Please do not use QComboBox::insertItem() to this widget, as that will fail.
- Parameters:
-
newItem the original (long version) of the item which needs to be added to the combobox index the position in the widget.
Definition at line 106 of file squeezedcombobox.cpp.
QString SqueezedComboBox::itemHighlighted | ( | ) |
This method returns the full text (not squeezed) of the currently highlighted item.
- Returns:
- full text of the highlighted item
Definition at line 161 of file squeezedcombobox.cpp.
QSize SqueezedComboBox::sizeHint | ( | ) | const [virtual] |
The documentation for this class was generated from the following files: