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
abstractobjectinspector.cpp
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
// Qt-Security score:significant reason:default
4
5
#
include
"abstractobjectinspector.h"
6
7
QT_BEGIN_NAMESPACE
8
9
/*!
10
\class QDesignerObjectInspectorInterface
11
12
\brief The QDesignerObjectInspectorInterface class allows you to
13
change the focus of \QD's object inspector.
14
15
\inmodule QtDesigner
16
17
You can use the QDesignerObjectInspectorInterface to change the
18
current form window selection. For example, when implementing a
19
custom widget plugin:
20
21
\snippet lib/tools_designer_src_lib_sdk_abstractobjectinspector.cpp 0
22
23
The QDesignerObjectInspectorInterface class is not intended to be
24
instantiated directly. You can retrieve an interface to \QD's
25
object inspector using the
26
QDesignerFormEditorInterface::objectInspector() function. A
27
pointer to \QD's current QDesignerFormEditorInterface object (\c
28
formEditor in the example above) is provided by the
29
QDesignerCustomWidgetInterface::initialize() function's
30
parameter. When implementing a custom widget plugin, you must
31
subclass the QDesignerCustomWidgetInterface to expose your plugin
32
to \QD.
33
34
The interface provides the core() function that you can use to
35
retrieve a pointer to \QD's current QDesignerFormEditorInterface
36
object, and the setFormWindow() function that enables you to
37
change the current form window selection.
38
39
\sa QDesignerFormEditorInterface, QDesignerFormWindowInterface
40
*/
41
42
/*!
43
Constructs an object inspector interface with the given \a parent
44
and the specified window \a flags.
45
*/
46
QDesignerObjectInspectorInterface::QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags flags)
47
: QWidget(parent, flags)
48
{
49
}
50
51
/*!
52
Destroys the object inspector interface.
53
*/
54
QDesignerObjectInspectorInterface::~QDesignerObjectInspectorInterface() =
default
;
55
56
/*!
57
Returns a pointer to \QD's current QDesignerFormEditorInterface
58
object.
59
*/
60
QDesignerFormEditorInterface *QDesignerObjectInspectorInterface::core()
const
61
{
62
return
nullptr
;
63
}
64
65
/*!
66
\fn void QDesignerObjectInspectorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
67
68
Sets the currently selected form window to \a formWindow.
69
*/
70
71
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
designer
src
lib
sdk
abstractobjectinspector.cpp
Generated on
for Qt by
1.16.1