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