digikam
Digikam::AlbumSelectComboBox Class Reference
#include <albumselectcombobox.h>

Public Member Functions | |
| AlbumSelectComboBox (QWidget *parent=0) | |
| ~AlbumSelectComboBox () | |
| QSortFilterProxyModel * | filterModel () const |
| AbstractCheckableAlbumModel * | model () const |
| void | setDefaultAlbumModels () |
| void | setDefaultTagModels () |
| void | setModels (AbstractCheckableAlbumModel *model, QSortFilterProxyModel *filterModel) |
| void | setNoSelectionText (const QString &text) |
Protected Slots | |
| virtual void | updateText () |
Protected Attributes | |
| QSortFilterProxyModel * | m_filterModel |
| AbstractCheckableAlbumModel * | m_model |
| QString | m_noSelectionText |
Detailed Description
Definition at line 38 of file albumselectcombobox.h.
Constructor & Destructor Documentation
| Digikam::AlbumSelectComboBox::AlbumSelectComboBox | ( | QWidget * | parent = 0 |
) |
Definition at line 42 of file albumselectcombobox.cpp.
| Digikam::AlbumSelectComboBox::~AlbumSelectComboBox | ( | ) |
Definition at line 50 of file albumselectcombobox.cpp.
Member Function Documentation
| QSortFilterProxyModel * Digikam::AlbumSelectComboBox::filterModel | ( | ) | const |
Return the filter model in use.
Definition at line 101 of file albumselectcombobox.cpp.
| AbstractCheckableAlbumModel * Digikam::AlbumSelectComboBox::model | ( | ) | const |
Returns the source model.
Retrieve selection information from here.
Definition at line 96 of file albumselectcombobox.cpp.
| void Digikam::AlbumSelectComboBox::setDefaultAlbumModels | ( | ) |
Once after creation, call one of these three methods.
Use the first one if you want a standard combo box for PAlbums and the second one for tags, while the third allows you to provide custom source and filter models. The first two also set a default noSelectionText. Customize afterwards if required.
Definition at line 54 of file albumselectcombobox.cpp.
| void Digikam::AlbumSelectComboBox::setDefaultTagModels | ( | ) |
Definition at line 62 of file albumselectcombobox.cpp.
| void Digikam::AlbumSelectComboBox::setModels | ( | AbstractCheckableAlbumModel * | model, | |
| QSortFilterProxyModel * | filterModel | |||
| ) |
Definition at line 69 of file albumselectcombobox.cpp.
| void Digikam::AlbumSelectComboBox::setNoSelectionText | ( | const QString & | text | ) |
Sets the text that is used to describe the state when no album is selected.
This may be something like "Any album" or "No tag selected"
Definition at line 90 of file albumselectcombobox.cpp.
| void Digikam::AlbumSelectComboBox::updateText | ( | ) | [protected, virtual, slot] |
Updates the text describing the selection ("3 Albums selected").
Can be overridden to customize the default text.
Definition at line 106 of file albumselectcombobox.cpp.
Member Data Documentation
Definition at line 75 of file albumselectcombobox.h.
Definition at line 74 of file albumselectcombobox.h.
Definition at line 76 of file albumselectcombobox.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference