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
20#include <QtCore/qobject.h>
21#include <QtCore/qlist.h>
22#include <QtCore/qpointer.h>
23
25
26class QDesignerFormWindowInterface;
27
28class QAction;
29class QWidget;
30
31namespace 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.
36{
39public:
41
42 explicit FormLayoutMenu(QObject *parent);
43
44 // Populate a list of actions with the form layout actions.
46 // For implementing QDesignerTaskMenuExtension::preferredEditAction():
47 // Return appropriate action for double clicking.
49
50private slots:
51 void slotAddRow();
52
53private:
58};
59} // namespace qdesigner_internal
60
61QT_END_NAMESPACE
62
63#endif // FORMLAYOUTMENU
QAction * preferredEditAction() const override
QList< QAction * > taskActions() const override
QObject * parent
Definition qobject.h:74
friend class QWidget
Definition qpainter.h:432
QList< QAction * > taskActions() const override
QAction * preferredEditAction() const override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QDESIGNER_SHARED_EXPORT