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
13
QT_BEGIN_NAMESPACE
14
15
class
QDesignerAxWidget;
16
17
class
QAxWidgetExtraInfo
:
public
QObject
,
public
QDesignerExtraInfoExtension
18
{
19
Q_OBJECT
20
Q_INTERFACES(QDesignerExtraInfoExtension)
21
public
:
22
QAxWidgetExtraInfo
(
QDesignerAxWidget
*
widget
,
QDesignerFormEditorInterface
*
core
,
QObject
*
parent
);
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
33
private
:
34
QPointer<QDesignerAxWidget> m_widget;
35
QPointer<QDesignerFormEditorInterface> m_core;
36
};
37
38
class
QAxWidgetExtraInfoFactory
:
public
QExtensionFactory
39
{
40
Q_OBJECT
41
public
:
42
explicit
QAxWidgetExtraInfoFactory
(
QDesignerFormEditorInterface
*
core
,
QExtensionManager
*
parent
= 0);
43
44
protected
:
45
QObject
*
createExtension
(QObject *object,
const
QString &iid, QObject *parent)
const
override
;
46
47
private
:
48
QDesignerFormEditorInterface *m_core;
49
};
50
51
QT_END_NAMESPACE
52
53
#
endif
// ACTIVEQT_EXTRAINFO_H
QAxWidgetExtraInfoFactory
Definition
qaxwidgetextrainfo.h:39
QAxWidgetExtraInfoFactory::createExtension
QObject * createExtension(QObject *object, const QString &iid, QObject *parent) const override
Creates an extension specified by iid for the given object.
Definition
qaxwidgetextrainfo.cpp:67
QAxWidgetExtraInfo
Definition
qaxwidgetextrainfo.h:18
QAxWidgetExtraInfo::loadWidgetExtraInfo
bool loadWidgetExtraInfo(DomWidget *ui_widget) override
Loads extra information about the specified widget, and returns true if successful; otherwise returns...
Definition
qaxwidgetextrainfo.cpp:57
QAxWidgetExtraInfo::saveWidgetExtraInfo
bool saveWidgetExtraInfo(DomWidget *ui_widget) override
Saves the information about the specified widget, and returns true if successful; otherwise returns f...
Definition
qaxwidgetextrainfo.cpp:38
QAxWidgetExtraInfo::saveUiExtraInfo
bool saveUiExtraInfo(DomUI *ui) override
Saves the information about the user interface specified by ui, and returns true if successful; other...
Definition
qaxwidgetextrainfo.cpp:28
QAxWidgetExtraInfo::core
QDesignerFormEditorInterface * core() const override
\omit
Definition
qaxwidgetextrainfo.cpp:23
QAxWidgetExtraInfo::widget
QWidget * widget() const override
Returns the widget described by this extension.
Definition
qaxwidgetextrainfo.cpp:18
QAxWidgetExtraInfo::loadUiExtraInfo
bool loadUiExtraInfo(DomUI *ui) override
Loads extra information about the user interface specified by ui, and returns true if successful; oth...
Definition
qaxwidgetextrainfo.cpp:33
QObjectData::parent
QObject * parent
Definition
qobject.h:73
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qttools
src
designer
src
plugins
activeqt
qaxwidgetextrainfo.h
Generated on Sat Sep 21 2024 00:50:43 for Qt by
1.12.0