1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#include "treeviewkeeper.h"
6#include "treeview.h"
7
8TreeViewKeeper::TreeViewKeeper()
9{
10
11}
12
13TreeViewKeeper *TreeViewKeeper::instance()
14{
15 static TreeViewKeeper ins;
16 return &ins;
17}
18
19TreeView *TreeViewKeeper::treeView()
20{
21 if (!iTreeView) {
22 iTreeView = new TreeView;
23 }
24 return iTreeView;
25}
26