digiKam
Loading...
Searching...
No Matches
showfotostackviewitem.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2021-09-27
7 * Description : Showfoto stack view item
8 *
9 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QString>
20#include <QPixmap>
21#include <QTreeWidgetItem>
22
23// Local includes
24
25#include "showfotoiteminfo.h"
26
27namespace ShowFoto
28{
29
30class ShowfotoStackViewList;
31
32class ShowfotoStackViewItem : public QTreeWidgetItem
33{
34
35public:
36
37 explicit ShowfotoStackViewItem(ShowfotoStackViewList* const parent);
38 ~ShowfotoStackViewItem() override = default;
39
40 void setInfo(const ShowfotoItemInfo&);
41 ShowfotoItemInfo info() const;
42
43 void setThumbnail(const QPixmap&);
44
45 bool operator<(const QTreeWidgetItem& other) const override;
46
47private:
48
49 ShowfotoItemInfo m_info;
50
51 Q_DISABLE_COPY(ShowfotoStackViewItem)
52};
53
54} // namespace ShowFoto
Definition showfotoiteminfo.h:38
Definition showfotostackviewitem.h:33
void setInfo(const ShowfotoItemInfo &)
Definition showfotostackviewitem.cpp:50
void setThumbnail(const QPixmap &)
Definition showfotostackviewitem.cpp:84
bool operator<(const QTreeWidgetItem &other) const override
Definition showfotostackviewitem.cpp:99
ShowfotoItemInfo info() const
Definition showfotostackviewitem.cpp:79
~ShowfotoStackViewItem() override=default
Definition showfotostackviewlist.h:36
Definition showfotofolderviewbar.cpp:43