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
morphmenu_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//
6// W A R N I N G
7// -------------
8//
9// This file is not part of the Qt API. It exists for the convenience
10// of Qt Designer. This header
11// file may change from version to version without notice, or even be removed.
12//
13// We mean it.
14//
15
16#ifndef MORPH_COMMAND_H
17#define MORPH_COMMAND_H
18
21
23
24class QAction;
25class QMenu;
26
27namespace qdesigner_internal {
28
29/* Conveniene morph menu that acts on a single widget. */
33public:
35
36 explicit MorphMenu(QObject *parent = nullptr);
37
40
41private slots:
42 void slotMorph(const QString &newClassName);
43
44private:
46
47 QAction *m_subMenuAction = nullptr;
48 QMenu *m_menu = nullptr;
49 QWidget *m_widget = nullptr;
51};
52
53} // namespace qdesigner_internal
54
55QT_END_NAMESPACE
56
57#endif // MORPH_COMMAND_H
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