|
| IccProfilesComboBox (QWidget *const parent=nullptr) |
|
void | addProfileSqueezed (const IccProfile &profile, const QString &description=QString()) |
| Add the given profile with the given description, or, if null, a standard description.
|
|
void | addProfilesSqueezed (const QList< IccProfile > &profiles) |
| Checks the given profiles for validity, creates a suitable description (ICC profile description, file path), removes duplicates by file path, sorts them and adds them in sorted order.
|
|
IccProfile | currentProfile () const |
| Retrieves the current profile, or a null profile if none is selected.
|
|
void | replaceProfilesSqueezed (const QList< IccProfile > &profiles) |
| Clears, does the same as addProfilesSqueezed, and restores the current entry if possible.
|
|
void | setCurrentProfile (const IccProfile &profile) |
| Sets the current profile.
|
|
void | setNoProfileIfEmpty (const QString &message) |
| Sets a message the is displayed in the combo box and disables the combo box, if the combo box is currently empty.
|
|
| SqueezedComboBox (QWidget *const parent=nullptr, const char *name=nullptr) |
| Constructor.
|
|
| ~SqueezedComboBox () override |
| destructor
|
|
void | addSqueezedItem (const QString &newItem, const QVariant &userData=QVariant()) |
| Append an item.
|
|
bool | contains (const QString &text) const |
| Returns true if the combobox contains the original (not-squeezed) version of text.
|
|
int | findOriginalText (const QString &text, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| Returns the index of the combobox if found the original (not-squeezed) version of text.
|
|
void | insertSqueezedItem (const QString &newItem, int index, const QVariant &userData=QVariant()) |
| This inserts a item to the list.
|
|
void | insertSqueezedList (const QStringList &newItems, int index) |
| This inserts items to the list.
|
|
QString | item (int index) const |
| This method returns the full text (not squeezed) for the index.
|
|
QString | itemHighlighted () const |
| This method returns the full text (not squeezed) of the currently highlighted item.
|
|
void | setCurrent (const QString &itemText) |
| Set the current item to the one matching the given text.
|
|
QSize | sizeHint () const override |
| Sets the sizeHint() of this widget.
|
|