1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #include "projectkeeper.h" |
6 | #include "projecttree.h" |
7 | #include "common/common.h" |
8 | |
9 | #include <QStandardItem> |
10 | |
11 | namespace { |
12 | ProjectTree *tree{nullptr}; |
13 | } |
14 | |
15 | ProjectKeeper::ProjectKeeper() |
16 | { |
17 | |
18 | } |
19 | |
20 | ProjectKeeper *ProjectKeeper::instance() |
21 | { |
22 | static ProjectKeeper ins; |
23 | return &ins; |
24 | } |
25 | |
26 | ProjectTree *ProjectKeeper::treeView() |
27 | { |
28 | if (!tree) |
29 | tree = new ProjectTree(); |
30 | return tree; |
31 | } |
32 | |
33 | |
34 | |
35 |