digiKam
Loading...
Searching...
No Matches
itempropertieshistorytab.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 : 2010-06-23
7 * Description : a tab to display item editing history
8 *
9 * SPDX-FileCopyrightText: 2010 by Martin Klapetek <martin dot klapetek 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 <QWidget>
20#include <QAction>
21#include <QModelIndex>
22#include <QUrl>
23
24// Local includes
25
26#include "digikam_export.h"
27#include "dmetadata.h"
28
29namespace Digikam
30{
31
32class DIGIKAM_GUI_EXPORT RemoveFilterAction : public QAction
33{
34 Q_OBJECT
35
36public:
37
38 explicit RemoveFilterAction(const QString& label,
39 const QModelIndex& index,
40 QObject* const parent = nullptr);
42
43 void setIndex(const QModelIndex& index);
44
45public Q_SLOTS:
46
47 void triggerSlot();
48
49Q_SIGNALS:
50
51 void actionTriggered(QModelIndex index);
52
53private:
54
55 QModelIndex m_index;
56};
57
58// -------------------------------------------------------------------------------------
59
60class DIGIKAM_GUI_EXPORT ItemPropertiesHistoryTab : public QWidget
61{
62 Q_OBJECT
63
64public:
65
66 explicit ItemPropertiesHistoryTab(QWidget* const parent);
68
69 void setCurrentURL(const QUrl& url = QUrl());
70
71public Q_SLOTS:
72
73 void showCustomContextMenu(const QPoint& position);
74 void setModelData(const QList<DImageHistory::Entry>& entries);
75 void disableEntry(bool disable);
76
77private:
78
79 class Private;
80 Private* const d = nullptr;
81};
82
83} // namespace Digikam
Definition itempropertieshistorytab.h:61
Definition itempropertieshistorytab.h:33
void actionTriggered(QModelIndex index)
Definition datefolderview.cpp:34