Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
deviceprofiledialog.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5//
6// W A R N I N G
7// -------------
8//
9// This file is not part of the Qt API. It exists for the convenience
10// of Qt Designer. This header
11// file may change from version to version without notice, or even be removed.
12//
13// We mean it.
14//
15
16#ifndef SYSTEMSETTINGSDIALOG_H
17#define SYSTEMSETTINGSDIALOG_H
18
19#include <QtWidgets/qdialog.h>
20#include <QtCore/qstringlist.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace Ui {
25 class DeviceProfileDialog;
26}
27
28class QDesignerDialogGuiInterface;
29
30class QDialogButtonBox;
31
32namespace qdesigner_internal {
33
34class DeviceProfile;
35
36/* DeviceProfileDialog: Widget to edit system settings for embedded design */
37
39{
42public:
45
46 DeviceProfile deviceProfile() const;
47 void setDeviceProfile(const DeviceProfile &s);
48
49 bool showDialog(const QStringList &existingNames);
50
51private slots:
52 void setOkButtonEnabled(bool);
53 void nameChanged(const QString &name);
54 void save();
55 void open() override;
56
57private:
58 void critical(const QString &title, const QString &msg);
59 Ui::DeviceProfileDialog *m_ui;
60 QDesignerDialogGuiInterface *m_dlgGui;
61 QStringList m_existingNames;
62};
63}
64
65QT_END_NAMESPACE
66
67#endif // SYSTEMSETTINGSDIALOG_H
friend class QWidget
Definition qpainter.h:432
bool showDialog(const QStringList &existingNames)
void setDeviceProfile(const DeviceProfile &s)
static constexpr auto profileExtensionC
static QString fileFilter()
static void populateNumericCombo(IntIterator i1, IntIterator i2, QComboBox *cb)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.