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
layouttaskmenu.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
"layouttaskmenu.h"
5
#
include
<
formlayoutmenu_p
.
h
>
6
#
include
<
morphmenu_p
.
h
>
7
8
#
include
<
QtDesigner
/
abstractformwindow
.
h
>
9
10
#
include
<
QtGui
/
qaction
.
h
>
11
12
#
include
<
QtCore
/
qdebug
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
// ------------ LayoutWidgetTaskMenu
17
LayoutWidgetTaskMenu
::
LayoutWidgetTaskMenu
(
QLayoutWidget
*
lw
,
QObject
*
parent
) :
18
QObject
(
parent
),
19
m_widget(lw),
20
m_morphMenu(
new
qdesigner_internal::MorphMenu(
this
)),
21
m_formLayoutMenu(
new
qdesigner_internal::FormLayoutMenu(
this
))
22
{
23
}
24
25
QAction *
LayoutWidgetTaskMenu
::
preferredEditAction
()
const
26
{
27
return
m_formLayoutMenu->preferredEditAction(m_widget, m_widget->formWindow());
28
}
29
30
QList
<
QAction
*>
LayoutWidgetTaskMenu
::
taskActions
()
const
31
{
32
QList<QAction*> rc;
33
QDesignerFormWindowInterface *fw = m_widget->formWindow();
34
m_morphMenu->populate(m_widget, fw, rc);
35
m_formLayoutMenu->populate(m_widget, fw, rc);
36
return
rc;
37
}
38
39
// ------------- SpacerTaskMenu
40
SpacerTaskMenu
::SpacerTaskMenu(Spacer *, QObject *parent) :
41
QObject(parent)
42
{
43
}
44
45
QAction *
SpacerTaskMenu
::
preferredEditAction
()
const
46
{
47
return
nullptr
;
48
}
49
50
QList
<
QAction
*>
SpacerTaskMenu
::
taskActions
()
const
51
{
52
return
{};
53
}
54
55
QT_END_NAMESPACE
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
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
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qttools
src
designer
src
components
taskmenu
layouttaskmenu.cpp
Generated on Thu Nov 14 2024 00:53:22 for Qt by
1.12.0