digikam
Digikam::AlbumModel Class Reference
#include <albummodel.h>
Inheritance diagram for Digikam::AlbumModel:

Public Member Functions | |
| AlbumModel (RootAlbumBehavior rootBehavior=IncludeRootAlbum, QObject *parent=0) | |
| PAlbum * | albumForIndex (const QModelIndex &index) const |
Protected Member Functions | |
| virtual Album * | albumForId (int id) const |
| virtual QVariant | decorationRole (Album *a) const |
Detailed Description
Definition at line 34 of file albummodel.h.
Constructor & Destructor Documentation
| Digikam::AlbumModel::AlbumModel | ( | RootAlbumBehavior | rootBehavior = IncludeRootAlbum, |
|
| QObject * | parent = 0 | |||
| ) | [explicit] |
Create a model containing all physical albums.
Definition at line 40 of file albummodel.cpp.
Member Function Documentation
| Album * Digikam::AlbumModel::albumForId | ( | int | id | ) | const [protected, virtual] |
need to implement in subclass
Implements Digikam::AbstractCountingAlbumModel.
Definition at line 60 of file albummodel.cpp.
| PAlbum * Digikam::AlbumModel::albumForIndex | ( | const QModelIndex & | index | ) | const |
Returns the album object associated with the given model index.
Reimplemented from Digikam::AbstractAlbumModel.
Definition at line 49 of file albummodel.cpp.
For subclassing convenience: A part of the implementation of data().
Reimplemented from Digikam::AbstractAlbumModel.
Definition at line 54 of file albummodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference