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