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
embeddedoptionspage.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#ifndef EMBEDDEDOPTIONSPAGE_H
5#define EMBEDDEDOPTIONSPAGE_H
6
7#include <QtDesigner/abstractoptionspage.h>
8#include <QtCore/qpointer.h>
9#include <QtWidgets/qwidget.h>
10
11QT_BEGIN_NAMESPACE
12
13class QDesignerFormEditorInterface;
14
15namespace qdesigner_internal {
16
18
19/* EmbeddedOptions Control. Presents the user with a list of embedded
20 * device profiles he can modify/add/delete. */
24public:
27
28 bool isDirty() const;
29
30public slots:
31 void loadSettings();
32 void saveSettings();
33
34private slots:
35 void slotAdd();
36 void slotEdit();
37 void slotDelete();
38 void slotProfileIndexChanged(int);
39
40private:
42
44};
45
46// EmbeddedOptionsPage
48{
50public:
52
53 QString name() const override;
54 QWidget *createPage(QWidget *parent) override;
55 void finish() override;
56 void apply() override;
57
58private:
59 QDesignerFormEditorInterface *m_core;
60 QPointer<EmbeddedOptionsControl> m_embeddedOptionsControl;
61};
62
63} // namespace qdesigner_internal
64
65QT_END_NAMESPACE
66
67#endif // EMBEDDEDOPTIONSPAGE_H
friend class QWidget
Definition qpainter.h:421
QWidget * createPage(QWidget *parent) override
Auxiliary methods to store/retrieve settings.
bool deviceProfileLessThan(const DeviceProfile &d1, const DeviceProfile &d2)
static bool ask(QWidget *parent, QDesignerDialogGuiInterface *dlgui, const QString &title, const QString &what)