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
morphmenu_p.h
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
//
6
// W A R N I N G
7
// -------------
8
//
9
// This file is not part of the Qt API. It exists for the convenience
10
// of Qt Designer. This header
11
// file may change from version to version without notice, or even be removed.
12
//
13
// We mean it.
14
//
15
16
#
ifndef
MORPH_COMMAND_H
17
#
define
MORPH_COMMAND_H
18
19
#
include
"shared_global_p.h"
20
#
include
"qdesigner_formwindowcommand_p.h"
21
22
QT_BEGIN_NAMESPACE
23
24
class
QAction;
25
class
QMenu;
26
27
namespace
qdesigner_internal
{
28
29
/* Conveniene morph menu that acts on a single widget. */
30
class
QDESIGNER_SHARED_EXPORT
MorphMenu
:
public
QObject
{
31
Q_DISABLE_COPY_MOVE
(
MorphMenu
)
32
Q_OBJECT
33
public
:
34
using
ActionList
=
QList
<
QAction
*>;
35
36
explicit
MorphMenu
(
QObject
*
parent
=
nullptr
);
37
38
void
populate
(
QWidget
*
w
,
QDesignerFormWindowInterface
*
fw
,
ActionList
&
al
);
39
void
populate
(
QWidget
*
w
,
QDesignerFormWindowInterface
*
fw
,
QMenu
&
m
);
40
41
private
slots
:
42
void
slotMorph
(
const
QString
&
newClassName
);
43
44
private
:
45
bool
populateMenu
(
QWidget
*
w
,
QDesignerFormWindowInterface
*
fw
);
46
47
QAction
*
m_subMenuAction
=
nullptr
;
48
QMenu
*
m_menu
=
nullptr
;
49
QWidget
*
m_widget
=
nullptr
;
50
QDesignerFormWindowInterface
*
m_formWindow
=
nullptr
;
51
};
52
53
}
// namespace qdesigner_internal
54
55
QT_END_NAMESPACE
56
57
#
endif
// MORPH_COMMAND_H
LayoutWidgetTaskMenu
Definition
layouttaskmenu.h:23
LayoutWidgetTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
layouttaskmenu.cpp:26
LayoutWidgetTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
layouttaskmenu.cpp:31
QLayoutWidget
Definition
qlayout_widget_p.h:237
QObjectData::parent
QObject * parent
Definition
qobject.h:74
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
SpacerTaskMenu
Definition
layouttaskmenu.h:40
SpacerTaskMenu::taskActions
QList< QAction * > taskActions() const override
Definition
layouttaskmenu.cpp:51
SpacerTaskMenu::preferredEditAction
QAction * preferredEditAction() const override
Definition
layouttaskmenu.cpp:46
qdesigner_internal::FormLayoutMenu
Definition
formlayoutmenu_p.h:36
qdesigner_internal::MorphMenu
Definition
morphmenu_p.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
QDESIGNER_SHARED_EXPORT
#define QDESIGNER_SHARED_EXPORT
Definition
shared_global_p.h:33
qttools
src
designer
src
lib
shared
morphmenu_p.h
Generated on
for Qt by
1.16.1