#include <squeezedcombobox.h>
Public Member Functions | |
| SqueezedComboBox (TQWidget *parent=0, const char *name=0) | |
| virtual | ~SqueezedComboBox () |
| bool | contains (const TQString &text) const |
| void | insertSqueezedItem (const TQString &newItem, int index) |
| TQString | itemHighlighted () |
| virtual TQSize | sizeHint () const |
Detailed Description
This widget is a TQComboBox, 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.
Definition at line 82 of file squeezedcombobox.h.
Constructor & Destructor Documentation
◆ SqueezedComboBox()
| SqueezedComboBox::SqueezedComboBox | ( | TQWidget * | 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()
|
virtual |
destructor
Definition at line 73 of file squeezedcombobox.cpp.
Member Function Documentation
◆ contains()
| bool SqueezedComboBox::contains | ( | const TQString & | text | ) | const |
Definition at line 79 of file squeezedcombobox.cpp.
◆ insertSqueezedItem()
| void SqueezedComboBox::insertSqueezedItem | ( | const TQString & | newItem, |
| int | index ) |
This inserts a item to the list.
See TQComboBox::insertItem() for detaills. Please do not use TQComboBox::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.
◆ itemHighlighted()
| TQString 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.
◆ sizeHint()
|
virtual |
Sets the sizeHint() of this widget.
Definition at line 93 of file squeezedcombobox.cpp.
The documentation for this class was generated from the following files:
