Remove some obsolete code inside QT_VERSION_CHECK sections

With Qt 5.9 as minimal build version, we don't need to handle 5.7 or 5.8

Change-Id: Ie1eed95ab46364452b0633f78bebc565a4a63f4a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2018-04-25 13:24:28 +02:00
parent 4533015c66
commit 1dbdd259be
5 changed files with 2 additions and 34 deletions

View File

@@ -52,15 +52,8 @@ SerialControl::SerialControl(const Settings &settings, QObject *parent) :
connect(&m_serialPort, &QSerialPort::readyRead,
this, &SerialControl::handleReadyRead);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
connect(&m_serialPort, &QSerialPort::errorOccurred,
this, &SerialControl::handleError);
#else
connect(&m_serialPort,
static_cast<void (QSerialPort::*)(QSerialPort::SerialPortError)>(&QSerialPort::error),
this, &SerialControl::handleError);
#endif
connect(&m_reconnectTimer, &QTimer::timeout,
this, &SerialControl::reconnectTimeout);
}