summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <[email protected]>2020-05-07 09:30:16 +0200
committerVolker Hilsheimer <[email protected]>2020-05-11 11:05:15 +0200
commit90210c8d28a90295ebbf37ef45b69924ed7f42d0 (patch)
treea67feb9140d069197bbcaf53fe28d71e4be255cd /src/widgets/kernel/qwidget.cpp
parent219e7bafa278792f7bde110d24333fb60b555c12 (diff)
Remove dead code from src/widgets
Code that's removed via QT_VERSION(6, 0, 0) check is already no longer compiled. Change-Id: I70865f330a6260ac2e9cf2770d599a5b6f7bb7d4 Reviewed-by: Jan Arve Sæther <[email protected]>
Diffstat (limited to 'src/widgets/kernel/qwidget.cpp')
-rw-r--r--src/widgets/kernel/qwidget.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index 74ff3d744e5..a1f5b9a26c0 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -3097,11 +3097,7 @@ void QWidget::addAction(QAction *action)
\sa removeAction(), QMenu, addAction()
*/
-#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
void QWidget::addActions(const QList<QAction *> &actions)
-#else
-void QWidget::addActions(QList<QAction*> actions)
-#endif
{
for(int i = 0; i < actions.count(); i++)
insertAction(nullptr, actions.at(i));
@@ -3150,11 +3146,7 @@ void QWidget::insertAction(QAction *before, QAction *action)
\sa removeAction(), QMenu, insertAction(), contextMenuPolicy
*/
-#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
void QWidget::insertActions(QAction *before, const QList<QAction*> &actions)
-#else
-void QWidget::insertActions(QAction *before, QList<QAction*> actions)
-#endif
{
for(int i = 0; i < actions.count(); ++i)
insertAction(before, actions.at(i));
@@ -9825,11 +9817,7 @@ void QWidget::hideEvent(QHideEvent *)
\endtable
*/
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
bool QWidget::nativeEvent(const QByteArray &eventType, void *message, qintptr *result)
-#else
-bool QWidget::nativeEvent(const QByteArray &eventType, void *message, long *result)
-#endif
{
Q_UNUSED(eventType);
Q_UNUSED(message);