diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2021-07-13 19:23:36 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-07-28 02:01:21 +0200 |
commit | d3ecc6db293143bdd4a5da5f28144a7e145f257c (patch) | |
tree | fa49b2c9f9636ba5a58fc62507b241cdfedc51f1 /src/widgets/compat | |
parent | 99f0db695ab54ba0cd88c6a53ddd2d712525ecc3 (diff) |
QMenuBar: remove addAction() functions
They're now in QWidget itself. Remove them from the API, but not the
ABI.
[ChangeLog][QtWidgets][QMenuBar] The addAction() functions have been
moved down into QWidget.
Change-Id: Iaa023ff227686e8e67a2b5594f0fbc31b95177a3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/compat')
-rw-r--r-- | src/widgets/compat/removed_api.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/widgets/compat/removed_api.cpp b/src/widgets/compat/removed_api.cpp index 3af337d853..32f4e7c806 100644 --- a/src/widgets/compat/removed_api.cpp +++ b/src/widgets/compat/removed_api.cpp @@ -96,6 +96,18 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text, return QWidget::addAction(icon, text, receiver, member); } +#include "qmenubar.h" + +QAction *QMenuBar::addAction(const QString &text) +{ + return QWidget::addAction(text); +} + +QAction *QMenuBar::addAction(const QString &text, const QObject *receiver, const char* member) +{ + return QWidget::addAction(text, receiver, member); +} + // #include <qotherheader.h> // // implement removed functions from qotherheader.h |