QtCanpool 3.3.0
载入中...
搜索中...
未找到
qxsettingsdialog_p.h
浏览该文件的文档.
1
5#pragma once
6
7#include "qxapp_global.h"
8#include "qxcore/qxsettings.h"
9#include "qxproperty.h"
10#include "qxsettingsdialog.h"
11
12#include <QtCore/QList>
13#include <QtCore/QPointer>
14
15QT_BEGIN_NAMESPACE
16class QDialogButtonBox;
17class QListWidget;
18class QStackedWidget;
19QT_END_NAMESPACE
20
22
23class QxPropertyEditor;
24
34{
36public:
38
39 struct Page {
40 QString id;
41 QString title;
43 QList<QxProperty> properties;
44 };
45
46 void init();
47 int indexOf(const QString &id) const;
49 void loadPage(const Page &page);
50 void load();
51 void write() const;
52 bool isModified() const;
53 void updateButtons();
54public:
56 QListWidget *m_list = Q_NULLPTR;
57 QStackedWidget *m_stack = Q_NULLPTR;
58 QDialogButtonBox *m_buttons = Q_NULLPTR;
59 QList<Page> m_pages;
60};
61
A form built from a list of QxProperty descriptors.
The state behind QxSettingsDialog: the pages, the settings object they are read from and written to,...
QPointer< QxCore ::QxSettings > m_settings
A settings dialog: a list of pages on the left, a key/value form on the right and the three things a ...
Thin wrapper around QSettings that keeps call sites free of the usual boilerplate: typed accessors wi...
Definition qxsettings.h:32
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PUBLIC(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_APP_BEGIN_NAMESPACE
#define QX_CORE_PREPEND_NAMESPACE(name)