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
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of Qt Designer. This header
10// file may change from version to version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef SYSTEMSETTINGSDIALOG_H
16#define SYSTEMSETTINGSDIALOG_H
17
18#include <QtWidgets/qdialog.h>
19#include <QtCore/qstringlist.h>
20
21QT_BEGIN_NAMESPACE
22
23namespace Ui {
24 class DeviceProfileDialog;
25}
26
27class QDesignerDialogGuiInterface;
28
29class QDialogButtonBox;
30
31namespace qdesigner_internal {
32
33class DeviceProfile;
34
35/* DeviceProfileDialog: Widget to edit system settings for embedded design */
36
38{
41public:
44
45 DeviceProfile deviceProfile() const;
46 void setDeviceProfile(const DeviceProfile &s);
47
48 bool showDialog(const QStringList &existingNames);
49
50private slots:
51 void setOkButtonEnabled(bool);
52 void nameChanged(const QString &name);
53 void save();
54 void open() override;
55
56private:
57 void critical(const QString &title, const QString &msg);
58 Ui::DeviceProfileDialog *m_ui;
59 QDesignerDialogGuiInterface *m_dlgGui;
60 QStringList m_existingNames;
61};
62}
63
64QT_END_NAMESPACE
65
66#endif // SYSTEMSETTINGSDIALOG_H
friend class QWidget
Definition qpainter.h:421
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.