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
4#ifndef ACTIVEQT_EXTRAINFO_H
5#define ACTIVEQT_EXTRAINFO_H
6
7#include <QtDesigner/extrainfo.h>
8#include <QtDesigner/abstractformeditor.h>
9#include <QtDesigner/default_extensionfactory.h>
10
11#include <QtCore/qpointer.h>
12
13QT_BEGIN_NAMESPACE
14
15class QDesignerAxWidget;
16
18{
19 Q_OBJECT
20 Q_INTERFACES(QDesignerExtraInfoExtension)
21public:
23
24 QWidget *widget() const override;
25 QDesignerFormEditorInterface *core() const override;
26
27 bool saveUiExtraInfo(DomUI *ui) override;
28 bool loadUiExtraInfo(DomUI *ui) override;
29
30 bool saveWidgetExtraInfo(DomWidget *ui_widget) override;
31 bool loadWidgetExtraInfo(DomWidget *ui_widget) override;
32
33private:
34 QPointer<QDesignerAxWidget> m_widget;
35 QPointer<QDesignerFormEditorInterface> m_core;
36};
37
39{
41public:
43
44protected:
45 QObject *createExtension(QObject *object, const QString &iid, QObject *parent) const override;
46
47private:
48 QDesignerFormEditorInterface *m_core;
49};
50
51QT_END_NAMESPACE
52
53#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...
QObject * parent
Definition qobject.h:73
Combined button and popup list for selecting options.