Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
removed_api.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Marc Mutz <marc.mutz@kdab.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#define QT_WIDGETS_BUILD_REMOVED_API
5
6#include "qtwidgetsglobal.h"
7
9
10#if QT_WIDGETS_REMOVED_SINCE(6, 3)
11
12#if QT_CONFIG(menu)
13#include "qmenu.h"
14
16{
18}
19
21{
23}
24#endif
25
26#if !QT_CONFIG(shortcut)
27// the overloads taking QKeySequence as a trailing argument are deprecated, not removed,
28// so remained in qmenu.cpp
29QAction *QMenu::addAction(const QString &text, const QObject *receiver, const char* member)
30{
31 return QWidget::addAction(text, receiver, member);
32}
33
35 const QObject *receiver, const char* member)
36{
37 return QWidget::addAction(icon, text, receiver, member);
38}
39#endif
40
41#if QT_CONFIG(toolbar)
42#include "qtoolbar.h"
43
45{
47}
48
50{
52}
53
55 const QObject *receiver, const char* member)
56{
57 return QWidget::addAction(text, receiver, member);
58}
59
61 const QObject *receiver, const char* member)
62{
63 return QWidget::addAction(icon, text, receiver, member);
64}
65#endif
66
67#if QT_CONFIG(menubar)
68#include "qmenubar.h"
69
71{
73}
74
75QAction *QMenuBar::addAction(const QString &text, const QObject *receiver, const char* member)
76{
77 return QWidget::addAction(text, receiver, member);
78}
79#endif
80
81// #include <qotherheader.h>
82// // implement removed functions from qotherheader.h
83
84#endif // QT_WIDGETS_REMOVED_SINCE(6, 3)
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
void addAction(QAction *action)
Appends the action action to this widget's list of actions.
Definition qwidget.cpp:3124
QIcon icon
The icon of the menu.
Definition qmenu.h:33
void addAction(QAction *action)
Appends the action action to this widget's list of actions.
Definition qwidget.cpp:3124
\inmodule QtCore
Definition qobject.h:90
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
void addAction(QAction *action)
Appends the action action to this widget's list of actions.
Definition qwidget.cpp:3124
void addAction(QAction *action)
Appends the action action to this widget's list of actions.
Definition qwidget.cpp:3124
QString text