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