24 #ifndef DIGIKAM_ALBUM_MODEL_H
25 #define DIGIKAM_ALBUM_MODEL_H
51 PAlbum* albumForIndex(
const QModelIndex& index)
const;
55 QVariant albumData(
Album* a,
int role)
const override;
56 QVariant decorationRoleData(
Album* a)
const override;
57 Album* albumForId(
int id)
const override;
73 TAlbum* albumForIndex(
const QModelIndex& index)
const;
74 void setColumnHeader(
const QString& header);
75 void activateFaceTagModel();
79 QVariant albumData(
Album* a,
int role)
const override;
80 QVariant decorationRoleData(
Album* a)
const override;
81 Album* albumForId(
int id)
const override;
82 QVariant fontRoleData(
Album* a)
const override;
83 bool setData(
const QModelIndex& index,
84 const QVariant&
value,
85 int role = Qt::EditRole)
override;
89 QMap<int, int> m_unconfirmedFaceCount;
103 explicit SearchModel(QObject*
const parent =
nullptr);
105 SAlbum* albumForIndex(
const QModelIndex& index)
const;
111 void setReplaceNames(
const QHash<QString, QString>& replaceNames);
112 void addReplaceName(
const QString& technicalName,
const QString& userVisibleName);
117 void setPixmapForNormalSearches(
const QPixmap& pix);
118 void setDefaultPixmap(
const QPixmap& pix);
119 void setPixmapForTimelineSearches(
const QPixmap& pix);
120 void setPixmapForHaarSearches(
const QPixmap& pix);
121 void setPixmapForMapSearches(
const QPixmap& pix);
122 void setPixmapForDuplicatesSearches(
const QPixmap& pix);
126 QVariant albumData(
Album* a,
int role)
const override;
127 Album* albumForId(
int id)
const override;
131 void albumSettingsChanged();
157 DAlbum* albumForIndex(
const QModelIndex& index)
const;
168 QModelIndex monthIndexForDate(
const QDate& date)
const;
173 void setPixmaps(
const QPixmap& forYearAlbums,
174 const QPixmap& forMonthAlbums);
178 void setYearMonthMap(
const QMap<YearMonth, int>& yearMonthMap);
182 QString albumName(
Album* a)
const override;
183 QVariant decorationRoleData(
Album* a)
const override;
184 QVariant sortRoleData(
Album* a)
const override;
185 Album* albumForId(
int id)
const override;
RootAlbumBehavior
Definition: abstractalbummodel.h:60
Definition: abstractalbummodel.h:358
Definition: abstractalbummodel.h:271
Definition: albummodel.h:40
Abstract base class for all album types.
Definition: album.h:67
Definition: albummodel.h:145
QPixmap m_yearPixmap
Definition: albummodel.h:189
QPixmap m_monthPixmap
Definition: albummodel.h:190
Definition: albummodel.h:95
QHash< int, QPixmap > m_pixmaps
Definition: albummodel.h:135
QHash< QString, QString > m_replaceNames
Definition: albummodel.h:136
Definition: albummodel.h:63
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43