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
abstractactioneditor.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
4
#
include
"abstractactioneditor.h"
5
6
QT_BEGIN_NAMESPACE
7
8
/*!
9
\class QDesignerActionEditorInterface
10
11
\brief The QDesignerActionEditorInterface class allows you to
12
change the focus of \QD's action editor.
13
14
\inmodule QtDesigner
15
16
The QDesignerActionEditorInterface class is not intended to be
17
instantiated directly. You can retrieve an interface to \QD's
18
action editor using the
19
QDesignerFormEditorInterface::actionEditor() function.
20
21
You can control which actions that are available in the action
22
editor's window using the manageAction() and unmanageAction()
23
functions. An action that is managed by \QD is available in the
24
action editor while an unmanaged action is ignored.
25
26
QDesignerActionEditorInterface also provides the core() function
27
that you can use to retrieve a pointer to \QD's current
28
QDesignerFormEditorInterface object, and the setFormWindow()
29
function that enables you to change the currently selected form
30
window.
31
32
\sa QDesignerFormEditorInterface, QDesignerFormWindowInterface
33
*/
34
35
/*!
36
Constructs an action editor interface with the given \a parent and
37
the specified window \a flags.
38
*/
39
QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags)
40
: QWidget(parent, flags)
41
{
42
}
43
44
/*!
45
Destroys the action editor interface.
46
*/
47
QDesignerActionEditorInterface::~QDesignerActionEditorInterface() =
default
;
48
49
/*!
50
Returns a pointer to \QD's current QDesignerFormEditorInterface
51
object.
52
*/
53
QDesignerFormEditorInterface *QDesignerActionEditorInterface::core()
const
54
{
55
return
nullptr
;
56
}
57
58
/*!
59
\fn void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
60
61
Sets the currently selected form window to \a formWindow.
62
63
*/
64
65
/*!
66
\fn void QDesignerActionEditorInterface::manageAction(QAction *action)
67
68
Instructs \QD to manage the specified \a action. An action that is
69
managed by \QD is available in the action editor.
70
71
\sa unmanageAction()
72
*/
73
74
/*!
75
\fn void QDesignerActionEditorInterface::unmanageAction(QAction *action)
76
77
Instructs \QD to ignore the specified \a action. An unmanaged
78
action is not available in the action editor.
79
80
\sa manageAction()
81
*/
82
83
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qttools
src
designer
src
lib
sdk
abstractactioneditor.cpp
Generated on Sat Sep 21 2024 00:50:30 for Qt by
1.12.0