digiKam
itemfiltershistorytreeitem.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 : widget for displaying an item in view with used filters on current image
8  *
9  * Copyright (C) 2010 by Martin Klapetek <martin dot klapetek at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_ITEM_FILTERS_HISTORY_TREE_ITEM_H
25 #define DIGIKAM_ITEM_FILTERS_HISTORY_TREE_ITEM_H
26 
27 // Qt includes
28 
29 #include <QList>
30 #include <QVariant>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
40 {
41 public:
42 
44  explicit ItemFiltersHistoryTreeItem(const QString& data, ItemFiltersHistoryTreeItem* const parent = nullptr);
46 
48  void removeChild(int row);
49 
51  int childCount() const;
52  int columnCount() const;
53  QVariant data(int column) const;
54  int row() const;
56  void setDisabled(bool disabled) const;
57  bool isDisabled() const;
58 
59 private:
60 
61  // Disable
63  ItemFiltersHistoryTreeItem& operator=(const ItemFiltersHistoryTreeItem&) = delete;
64 
65 private:
66 
67  class Private;
68  Private* const d;
69 };
70 
71 } // namespace Digikam
72 
73 #endif // DIGIKAM_ITEM_FILTERS_HISTORY_TREE_ITEM_H
Definition: itemfiltershistorytreeitem.h:40
int row() const
Definition: itemfiltershistorytreeitem.cpp:100
bool isDisabled() const
Definition: itemfiltershistorytreeitem.cpp:116
void setDisabled(bool disabled) const
Definition: itemfiltershistorytreeitem.cpp:121
void removeChild(int row)
Definition: itemfiltershistorytreeitem.cpp:110
QVariant data(int column) const
Definition: itemfiltershistorytreeitem.cpp:90
ItemFiltersHistoryTreeItem * parent() const
Definition: itemfiltershistorytreeitem.cpp:95
void appendChild(ItemFiltersHistoryTreeItem *const child)
Definition: itemfiltershistorytreeitem.cpp:70
int childCount() const
Definition: itemfiltershistorytreeitem.cpp:80
ItemFiltersHistoryTreeItem(const QList< QVariant > &data, ItemFiltersHistoryTreeItem *const parent=nullptr)
Definition: itemfiltershistorytreeitem.cpp:45
int columnCount() const
Definition: itemfiltershistorytreeitem.cpp:85
~ItemFiltersHistoryTreeItem()
Definition: itemfiltershistorytreeitem.cpp:64
ItemFiltersHistoryTreeItem * child(int row) const
Definition: itemfiltershistorytreeitem.cpp:75
Definition: datefolderview.cpp:43