1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef SETTINGSTAB_H
5#define SETTINGSTAB_H
6
7#include <QString>
8#include <QScrollArea>
9#include <QVariantMap>
10
11QT_BEGIN_NAMESPACE
12class QWidget;
13QT_END_NAMESPACE
14
15struct Setting
16{
17 QWidget *uiELement = nullptr;
18 QString name;
19 bool defaultBool = false;
20 double defaultReal = 0.0;
21};
22
23class SettingsTab : public QScrollArea
24{
25 Q_OBJECT
26
27public:
28 explicit SettingsTab(QWidget *parent = nullptr);
29
30 QJsonObject getOptions() const;
31
32private:
33 QList<Setting> settings;
34};
35
36#endif
37

source code of qtquick3d/tools/balsamui/settingstab.h