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
formlayoutmenu_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
#
ifndef
FORMLAYOUTMENU
6
#
define
FORMLAYOUTMENU
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists for the convenience
13
// of Qt Designer. This header
14
// file may change from version to version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
"shared_global_p.h"
20
#
include
<
QtCore
/
qobject
.
h
>
21
#
include
<
QtCore
/
qlist
.
h
>
22
#
include
<
QtCore
/
qpointer
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QDesignerFormWindowInterface;
27
28
class
QAction;
29
class
QWidget
;
30
31
namespace
qdesigner_internal
{
32
33
// Task menu to be used for form layouts. Offers an options "Add row" which
34
// pops up a dialog in which the user can specify label name, text and buddy.
35
class
QDESIGNER_SHARED_EXPORT
FormLayoutMenu
:
public
QObject
36
{
37
Q_DISABLE_COPY_MOVE
(
FormLayoutMenu
)
38
Q_OBJECT
39
public
:
40
using
ActionList
=
QList
<
QAction
*>;
41
42
explicit
FormLayoutMenu
(
QObject
*
parent
);
43
44
// Populate a list of actions with the form layout actions.
45
void
populate
(
QWidget
*
w
,
QDesignerFormWindowInterface
*
fw
,
ActionList
&
actions
);
46
// For implementing QDesignerTaskMenuExtension::preferredEditAction():
47
// Return appropriate action for double clicking.
48
QAction
*
preferredEditAction
(
QWidget
*
w
,
QDesignerFormWindowInterface
*
fw
);
49
50
private
slots
:
51
void
slotAddRow
();
52
53
private
:
54
QAction
*
m_separator1
;
55
QAction
*
m_populateFormAction
;
56
QAction
*
m_separator2
;
57
QPointer
<
QWidget
>
m_widget
;
58
};
59
}
// namespace qdesigner_internal
60
61
QT_END_NAMESPACE
62
63
#
endif
// FORMLAYOUTMENU
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
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
formlayoutmenu_p.h
Generated on
for Qt by
1.16.1