1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #include "optiondefaultkeeper.h" |
6 | |
7 | OptionDefaultKeeper::OptionDefaultKeeper() |
8 | { |
9 | |
10 | } |
11 | |
12 | OptionDefaultKeeper::~OptionDefaultKeeper() |
13 | { |
14 | if (optionDialog) |
15 | delete optionDialog; |
16 | } |
17 | |
18 | OptionDefaultKeeper *OptionDefaultKeeper::instance() |
19 | { |
20 | if (!ins) |
21 | ins = new OptionDefaultKeeper(); |
22 | return ins; |
23 | } |
24 | |
25 | OptionsDialog *OptionDefaultKeeper::getOptionDialog() |
26 | { |
27 | if (!optionDialog) { |
28 | optionDialog = new OptionsDialog(); |
29 | } |
30 | return optionDialog; |
31 | } |
32 |