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
5
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*/
39QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags)
40 : QWidget(parent, flags)
41{
42}
43
44/*!
45 Destroys the action editor interface.
46*/
47QDesignerActionEditorInterface::~QDesignerActionEditorInterface() = default;
48
49/*!
50 Returns a pointer to \QD's current QDesignerFormEditorInterface
51 object.
52*/
53QDesignerFormEditorInterface *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
83QT_END_NAMESPACE
Combined button and popup list for selecting options.