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
11namespace {
12ProjectTree *tree{nullptr};
13}
14
15ProjectKeeper::ProjectKeeper()
16{
17
18}
19
20ProjectKeeper *ProjectKeeper::instance()
21{
22 static ProjectKeeper ins;
23 return &ins;
24}
25
26ProjectTree *ProjectKeeper::treeView()
27{
28 if (!tree)
29 tree = new ProjectTree();
30 return tree;
31}
32
33
34
35