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