digikam
Digikam::AbstractCheckableAlbumModel Class Reference
#include <abstractalbummodel.h>

Signals | |
| void | checkStateChanged (Album *album, Qt::CheckState checkState) |
Public Member Functions | |
| AbstractCheckableAlbumModel (Album::Type albumType, Album *rootAlbum, RootAlbumBehavior rootBehavior=IncludeRootAlbum, QObject *parent=0) | |
| QList< Album * > | checkedAlbums () const |
| Qt::CheckState | checkState (Album *album) const |
| bool | isCheckable () const |
| bool | isChecked (Album *album) const |
| bool | isTristate () const |
| void | resetCheckedAlbums () |
| void | setCheckable (bool isCheckable) |
| void | setChecked (Album *album, bool isChecked) |
| void | setCheckState (Album *album, Qt::CheckState state) |
| void | setTristate (bool isTristate) |
| void | toggleChecked (Album *album) |
Protected Member Functions | |
| virtual void | albumCleared (Album *album) |
| virtual QVariant | albumData (Album *a, int role) const |
| virtual void | allAlbumsCleared () |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Detailed Description
Definition at line 260 of file abstractalbummodel.h.
Constructor & Destructor Documentation
| Digikam::AbstractCheckableAlbumModel::AbstractCheckableAlbumModel | ( | Album::Type | albumType, | |
| Album * | rootAlbum, | |||
| RootAlbumBehavior | rootBehavior = IncludeRootAlbum, |
|||
| QObject * | parent = 0 | |||
| ) |
Abstract base class that manages the check state of Albums.
Call setCheckable(true) to enable checkable albums.
Definition at line 633 of file abstractalbummodel.cpp.
Member Function Documentation
| void Digikam::AbstractCheckableAlbumModel::albumCleared | ( | Album * | ) | [protected, virtual] |
Notification when an entry is removed.
Reimplemented from Digikam::AbstractCountingAlbumModel.
Definition at line 750 of file abstractalbummodel.cpp.
| QVariant Digikam::AbstractCheckableAlbumModel::albumData | ( | Album * | a, | |
| int | role | |||
| ) | const [protected, virtual] |
For subclassing convenience: A part of the implementation of data().
Reimplemented from Digikam::AbstractCountingAlbumModel.
Definition at line 713 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::allAlbumsCleared | ( | ) | [protected, virtual] |
Notification when all entries are removed.
Reimplemented from Digikam::AbstractCountingAlbumModel.
Definition at line 756 of file abstractalbummodel.cpp.
Returns a list of album with check state Checked.
Definition at line 695 of file abstractalbummodel.cpp.
| Qt::CheckState Digikam::AbstractCheckableAlbumModel::checkState | ( | Album * | album | ) | const |
Returns the check state of the album.
Definition at line 675 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::checkStateChanged | ( | Album * | album, | |
| Qt::CheckState | checkState | |||
| ) | [signal] |
Emitted when the check state of an album changes.
checkState contains the new Qt::CheckState of album
| Qt::ItemFlags Digikam::AbstractCheckableAlbumModel::flags | ( | const QModelIndex & | index | ) | const [protected, virtual] |
Reimplemented from Digikam::AbstractAlbumModel.
Definition at line 728 of file abstractalbummodel.cpp.
| bool Digikam::AbstractCheckableAlbumModel::isCheckable | ( | ) | const |
Definition at line 652 of file abstractalbummodel.cpp.
| bool Digikam::AbstractCheckableAlbumModel::isChecked | ( | Album * | album | ) | const |
Returns if the given album has the check state Checked.
Definition at line 670 of file abstractalbummodel.cpp.
| bool Digikam::AbstractCheckableAlbumModel::isTristate | ( | ) | const |
Definition at line 665 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums | ( | ) |
Resets the checked state of all albums to Qt::Unchecked.
Definition at line 701 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::setCheckable | ( | bool | isCheckable | ) |
Triggers if the albums in this model are checkable.
Definition at line 641 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::setChecked | ( | Album * | album, | |
| bool | isChecked | |||
| ) |
Sets the check state of album to Checked or Unchecked.
Definition at line 680 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::setCheckState | ( | Album * | album, | |
| Qt::CheckState | state | |||
| ) |
Sets the check state of the album.
Definition at line 685 of file abstractalbummodel.cpp.
| bool Digikam::AbstractCheckableAlbumModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemModel.
Definition at line 733 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::setTristate | ( | bool | isTristate | ) |
Triggers if the albums in this model are tristate.
Note that you want to set setCheckable(true) before.
Definition at line 657 of file abstractalbummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::toggleChecked | ( | Album * | album | ) |
Toggles the check state of album between Checked or Unchecked.
Definition at line 690 of file abstractalbummodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference