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

Detailed Description
Definition at line 155 of file albummodel.h.
Signals | |
| void | checkStateChanged (Album *album, int 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) |
Protected Member Functions | |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
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 488 of file albummodel.cpp.
Member Function Documentation
| Qt::CheckState Digikam::AbstractCheckableAlbumModel::checkState | ( | Album * | album | ) | const |
| void Digikam::AbstractCheckableAlbumModel::checkStateChanged | ( | Album * | album, | |
| int | checkState | |||
| ) | [signal] |
Emitted when the check state of an album changes.
checkState contains the new Qt::CheckState of album
| QVariant Digikam::AbstractCheckableAlbumModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const [protected, virtual] |
| Qt::ItemFlags Digikam::AbstractCheckableAlbumModel::flags | ( | const QModelIndex & | index | ) | const [protected, virtual] |
| bool Digikam::AbstractCheckableAlbumModel::isCheckable | ( | ) | const |
Definition at line 507 of file albummodel.cpp.
| bool Digikam::AbstractCheckableAlbumModel::isChecked | ( | Album * | album | ) | const |
Returns if the given album has the check state Checked.
Definition at line 525 of file albummodel.cpp.
| bool Digikam::AbstractCheckableAlbumModel::isTristate | ( | ) | const |
Definition at line 520 of file albummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums | ( | ) |
Resets the checked state of all albums to Qt::Unchecked.
Definition at line 551 of file albummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::setCheckable | ( | bool | isCheckable | ) |
| void Digikam::AbstractCheckableAlbumModel::setChecked | ( | Album * | album, | |
| bool | isChecked | |||
| ) |
Sets the check state of album to Checked or Unchecked.
Definition at line 535 of file albummodel.cpp.
| void Digikam::AbstractCheckableAlbumModel::setCheckState | ( | Album * | album, | |
| Qt::CheckState | state | |||
| ) |
| bool Digikam::AbstractCheckableAlbumModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) | [protected, virtual] |
| 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 512 of file albummodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference