digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2010 by Michael G. Hansen <mike at mghansen dot de>
10 * SPDX-FileCopyrightText: 2010 by Gabriel Voicu <ping dot gabi at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QPersistentModelIndex>
21#include <QList>
22
23// Local includes
24
25#include "gpsitemcontainer.h"
26
27namespace Digikam
28{
29
31{
32public:
33
34 TreeBranch() = default;
35
37 {
38 qDeleteAll(oldChildren);
39 }
40
41public:
42
43 QPersistentModelIndex sourceIndex;
44 TreeBranch* parent = nullptr;
45 QString data;
46 QString help;
48 QList<TreeBranch*> oldChildren;
49 QList<TreeBranch*> spacerChildren;
50 QList<TreeBranch*> newChildren;
51
52private:
53
54 // Disable
55 TreeBranch(const TreeBranch&) = delete;
56 TreeBranch& operator=(const TreeBranch&) = delete;
57};
58
59} // namespace Digikam
Definition treebranch.h:31
QList< TreeBranch * > spacerChildren
Definition treebranch.h:49
Type type
Definition treebranch.h:47
QList< TreeBranch * > oldChildren
Definition treebranch.h:48
TreeBranch * parent
Definition treebranch.h:44
QString help
Definition treebranch.h:46
QList< TreeBranch * > newChildren
Definition treebranch.h:50
~TreeBranch()
Definition treebranch.h:36
QPersistentModelIndex sourceIndex
Definition treebranch.h:43
QString data
Definition treebranch.h:45
Definition datefolderview.cpp:34
Type
Definition gpsitemcontainer.h:36
@ TypeChild
Definition gpsitemcontainer.h:37