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
qaxwidgetextrainfo.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef ACTIVEQT_EXTRAINFO_H
6#define ACTIVEQT_EXTRAINFO_H
7
8#include <QtDesigner/extrainfo.h>
9#include <QtDesigner/abstractformeditor.h>
10#include <QtDesigner/default_extensionfactory.h>
11
12#include <QtCore/qpointer.h>
13
14QT_BEGIN_NAMESPACE
15
16class QDesignerAxWidget;
17
19{
20 Q_OBJECT
21 Q_INTERFACES(QDesignerExtraInfoExtension)
22public:
24
25 QWidget *widget() const override;
26 QDesignerFormEditorInterface *core() const override;
27
28 bool saveUiExtraInfo(DomUI *ui) override;
29 bool loadUiExtraInfo(DomUI *ui) override;
30
31 bool saveWidgetExtraInfo(DomWidget *ui_widget) override;
32 bool loadWidgetExtraInfo(DomWidget *ui_widget) override;
33
34private:
35 QPointer<QDesignerAxWidget> m_widget;
36 QPointer<QDesignerFormEditorInterface> m_core;
37};
38
40{
42public:
44
45protected:
46 QObject *createExtension(QObject *object, const QString &iid, QObject *parent) const override;
47
48private:
49 QDesignerFormEditorInterface *m_core;
50};
51
52QT_END_NAMESPACE
53
54#endif // ACTIVEQT_EXTRAINFO_H
QObject * createExtension(QObject *object, const QString &iid, QObject *parent) const override
Creates an extension specified by iid for the given object.
bool loadWidgetExtraInfo(DomWidget *ui_widget) override
Loads extra information about the specified widget, and returns true if successful; otherwise returns...
bool saveWidgetExtraInfo(DomWidget *ui_widget) override
Saves the information about the specified widget, and returns true if successful; otherwise returns f...
bool saveUiExtraInfo(DomUI *ui) override
Saves the information about the user interface specified by ui, and returns true if successful; other...
QDesignerFormEditorInterface * core() const override
\omit
QWidget * widget() const override
Returns the widget described by this extension.
bool loadUiExtraInfo(DomUI *ui) override
Loads extra information about the user interface specified by ui, and returns true if successful; oth...
static const char * controlPropertyName
QObject * parent
Definition qobject.h:74
Combined button and popup list for selecting options.