2
* Copyright 2015 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
#ifndef UCPAGETREENODE_P_H
17
#define UCPAGETREENODE_P_H
19
#include "ucstyleditembase_p.h"
22
class UCPageTreeNodePrivate : public UCStyledItemBasePrivate
24
Q_DECLARE_PUBLIC(UCPageTreeNode)
27
UCPageTreeNodePrivate ();
29
void updatePageTree ();
30
UCPageTreeNode *getParentPageTreeNode ();
33
CustomPropagated = 0x01,
35
CustomPageStack = 0x04
39
UCPageTreeNode *m_node = 0;
40
QList<Node> m_children;
43
void _q_activeBinding (bool active);
44
void _q_pageStackBinding (QQuickItem *pageStack);
45
void _q_propagatedBinding (QObject *propagated);
46
void updateParentLeafNode ();
50
void initPropagated();
53
void dumpNode(const Node &n, const QString &oldDepth = QString(), const QString &depth = QString(), bool isRoot = true);
56
UCPageTreeNode *m_parentNode;
57
QQuickItem* m_activeLeafNode;
58
QQuickItem* m_pageStack;
59
QObject* m_propagated;
60
QQuickItem* m_toolbar;
66
#endif // UCPAGETREENODE_P_H