|
|
| TagTreeViewSelectComboBox (QWidget *const parent=nullptr) |
| |
| virtual void | setAlbumModels (TagModel *model, TagPropertiesFilterModel *filteredModel=nullptr, CheckableAlbumFilterModel *filterModel=nullptr) |
| |
|
void | setDefaultModel () |
| |
|
TagTreeView * | treeView () const |
| |
| | AbstractAlbumTreeViewSelectComboBox (QWidget *const parent=nullptr) |
| | Abstract class.
|
| |
| void | addCheckUncheckContextMenuActions () |
| | Enables a context menu which contains options to check or uncheck groups of albums, given you have a checkable model.
|
| |
| void | setTreeView (AbstractAlbumTreeView *const treeView) |
| | Set a tree view created by you instead of creating a default view (in the subclasses).
|
| |
|
| AlbumSelectComboBox (QWidget *const parent=nullptr) |
| |
|
QSortFilterProxyModel * | filterModel () const |
| | Return the filter model in use.
|
| |
|
bool | isCheckable () const |
| |
| AbstractCheckableAlbumModel * | model () const |
| | Returns the source model.
|
| |
|
void | setAlbumModels (AbstractCheckableAlbumModel *model, AlbumFilterModel *filterModel=nullptr) |
| |
|
void | setAllSelectedText (bool all) |
| | Enable or disable the text used to describe the status when all album is selected.
|
| |
| void | setCheckable (bool checkable) |
| | Enable checkboxes next to the items.
|
| |
| void | setCloseOnActivate (bool close) |
| | Enable closing when an item was activated (clicked).
|
| |
| void | setDefaultAlbumModel () |
| | Once after creation, call one of these three methods.
|
| |
|
void | setDefaultTagModel () |
| |
| void | setNoSelectionText (const QString &text) |
| | Sets the text that is used to describe the state when no album is selected.
|
| |
|
void | setRecursive (bool recursive) |
| | If all subalbums shall be selected when parent will be selected.
|
| |
| void | setShowCheckStateSummary (bool show) |
| | If the box is checkable, enable showing a resume a la "3 Albums checked" in the combo box text.
|
| |
| | TreeViewLineEditComboBox (QWidget *const parent=nullptr) |
| | This class provides a TreeViewComboBox with a read-only line edit.
|
| |
| void | installView (QAbstractItemView *view=nullptr) override |
| | Replace the standard combo box list view with a QTreeView.
|
| |
|
void | setLineEdit (QLineEdit *edit) |
| |
| void | setLineEditText (const QString &text) |
| | Set the text of the line edit (the text that is visible if the popup is not opened).
|
| |
| | TreeViewComboBox (QWidget *parent=nullptr) |
| | This class provides a QComboBox with a QTreeView instead of the usual QListView.
|
| |
| | StayPoppedUpComboBox (QWidget *const parent=nullptr) |
| | This class provides an abstract QComboBox with a custom view (which is created by implementing subclasses) instead of the usual QListView.
|
| |
| | ModelIndexBasedComboBox (QWidget *const parent=nullptr) |
| | QComboBox has a current index based on a single integer.
|
| |
|
QModelIndex | currentIndex () const |
| |
|
void | hidePopup () override |
| |
|
void | setCurrentIndex (const QModelIndex &index) |
| |
|
void | showPopup () override |
| |
|
|
void | hidePopup () override |
| |
| virtual void | updateText () |
| | Updates the text describing the selection ("3 Albums selected").
|
| |
| void | installView (QAbstractItemView *view=nullptr) override |
| | Replace the standard combo box list view with a QTreeView.
|
| |
| void | sendViewportEventToView (QEvent *e) override |
| | Implement in subclass: Send the given event to the viewportEvent() method of m_view.
|
| |
| void | installView (QAbstractItemView *view=nullptr) override |
| | Replace the standard combo box list view with a QTreeView.
|
| |
| virtual void | installLineEdit () |
| | Sets a line edit.
|
| |
| void | sendViewportEventToView (QEvent *e) override |
| | Implement in subclass: Send the given event to the viewportEvent() method of m_view.
|
| |
|
bool | eventFilter (QObject *watched, QEvent *event) override |
| |
| void | installView (QAbstractItemView *view) |
| | Replace the standard combo box list view with the given view.
|
| |
|
AbstractAlbumTreeView * | m_treeView = nullptr |
| |
|
QLineEdit * | m_comboLineEdit = nullptr |
| |
|
QAbstractItemView * | m_view = nullptr |
| |
|
QPersistentModelIndex | m_currentIndex |
| |