digiKam
mdkeylistviewitem.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 : 2006-02-21
7  * Description : a generic list view item widget to
8  * display metadata key like a title
9  *
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_MD_KEY_LIST_VIEW_ITEM_H
26 #define DIGIKAM_MD_KEY_LIST_VIEW_ITEM_H
27 
28 // Qt includes
29 
30 #include <QObject>
31 #include <QString>
32 #include <QTreeWidget>
33 #include <QTreeWidgetItem>
34 
35 // Local includes
36 
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT MdKeyListViewItem : public QObject,
43  public QTreeWidgetItem
44 {
45  Q_OBJECT
46 
47 public:
48 
49  MdKeyListViewItem(QTreeWidget* const parent, const QString& key);
50  ~MdKeyListViewItem() override;
51 
52  QString getKey() const;
53  QString getDecryptedKey() const;
54 
55 private Q_SLOTS:
56 
57  void slotThemeChanged();
58 
59 private:
60 
61  QString m_key;
62  QString m_decryptedKey;
63 };
64 
65 } // namespace Digikam
66 
67 #endif // DIGIKAM_MD_KEY_LIST_VIEW_ITEM_H
Definition: mdkeylistviewitem.h:44
Definition: datefolderview.cpp:43