digiKam
treebranch.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-05-12
7  * Description : A model to hold information about image tags.
8  *
9  * Copyright (C) 2010 by Michael G. Hansen <mike at mghansen dot de>
10  * Copyright (C) 2010 by Gabriel Voicu <ping dot gabi 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_TREE_BRANCH_H
26 #define DIGIKAM_TREE_BRANCH_H
27 
28 // Qt includes
29 
30 #include <QPersistentModelIndex>
31 #include <QList>
32 
33 // Local includes
34 
35 #include "gpsitemcontainer.h"
36 
37 namespace Digikam
38 {
39 
41 {
42 public:
43 
44  explicit TreeBranch()
45  : parent(nullptr),
46  type (TypeChild)
47  {
48  }
49 
51  {
52  qDeleteAll(oldChildren);
53  }
54 
55 public:
56 
57  QPersistentModelIndex sourceIndex;
59  QString data;
60  QString help;
65 };
66 
67 } // namespace Digikam
68 
69 #endif // DIGIKAM_TREE_BRANCH_H
Definition: treebranch.h:41
QList< TreeBranch * > spacerChildren
Definition: treebranch.h:63
Type type
Definition: treebranch.h:61
QList< TreeBranch * > oldChildren
Definition: treebranch.h:62
TreeBranch * parent
Definition: treebranch.h:58
QString help
Definition: treebranch.h:60
TreeBranch()
Definition: treebranch.h:44
QList< TreeBranch * > newChildren
Definition: treebranch.h:64
~TreeBranch()
Definition: treebranch.h:50
QPersistentModelIndex sourceIndex
Definition: treebranch.h:57
QString data
Definition: treebranch.h:59
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43
Type
Definition: gpsitemcontainer.h:45
@ TypeChild
Definition: gpsitemcontainer.h:46