From 91b4ad849a07ea557aa857add003c2110e6d468e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 8 Jun 2020 14:56:50 -0300 Subject: [PATCH] QGCApplication: Remove check for Qt 5.0.0 version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/QGCApplication.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/QGCApplication.h b/src/QGCApplication.h index c8e054f9eb..26c5bea963 100644 --- a/src/QGCApplication.h +++ b/src/QGCApplication.h @@ -225,7 +225,7 @@ private: /*! Returns a signal index that is can be compared to QMetaCallEvent.signalId. */ static int signalIndex(const QMetaMethod & method) { Q_ASSERT(method.methodType() == QMetaMethod::Signal); - #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + int index = -1; const QMetaObject * mobj = method.enclosingMetaObject(); for (int i = 0; i <= method.methodIndex(); ++i) { @@ -233,9 +233,6 @@ private: ++ index; } return index; - #else - return method.methodIndex(); - #endif } public: SignalList() {} -- GitLab