digiKam
metadatalistviewitem.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
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_META_DATA_LIST_VIEW_ITEM_H
26 #define DIGIKAM_META_DATA_LIST_VIEW_ITEM_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QTreeWidgetItem>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT MetadataListViewItem : public QTreeWidgetItem
41 {
42 public:
43 
44  MetadataListViewItem(QTreeWidgetItem* const parent,
45  const QString& key,
46  const QString& title,
47  const QString& value);
48  MetadataListViewItem(QTreeWidgetItem* const parent,
49  const QString& key,
50  const QString& title);
51  ~MetadataListViewItem() override;
52 
53  QString getKey() const;
54  QString getTitle() const;
55  QString getValue() const;
56 
57 private:
58 
59  QString m_key;
60 
61 private:
62 
63  Q_DISABLE_COPY(MetadataListViewItem)
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_META_DATA_LIST_VIEW_ITEM_H
Definition: metadatalistviewitem.h:41
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43