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
19#include <QtCore/qobject.h>
20#include <QtCore/qlist.h>
21#include <QtCore/qpointer.h>
22
24
25class QDesignerFormWindowInterface;
26
27class QAction;
28class QWidget;
29
30namespace 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.
35{
38public:
40
41 explicit FormLayoutMenu(QObject *parent);
42
43 // Populate a list of actions with the form layout actions.
45 // For implementing QDesignerTaskMenuExtension::preferredEditAction():
46 // Return appropriate action for double clicking.
48
49private slots:
50 void slotAddRow();
51
52private:
57};
58} // namespace qdesigner_internal
59
60QT_END_NAMESPACE
61
62#endif // FORMLAYOUTMENU
QAction * preferredEditAction() const override
QList< QAction * > taskActions() const override
QObject * parent
Definition qobject.h:73
friend class QWidget
Definition qpainter.h:421
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