fix qt4 build error due to known moc problem

qt4's moc is known to have problems with C preprocessor directives.

Documented e.g. here:
https://forum.qt.io/topic/37882/qt-4-8-qt_version_check-and-moc-workaround
This commit is contained in:
v4hn 2017-11-13 14:56:35 +01:00
parent df1bbc5d32
commit 720c08354e

View File

@ -140,7 +140,7 @@ private:
Q_PRIVATE_SLOT(d_func(), void _q_sourceRowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int))
Q_PRIVATE_SLOT(d_func(), void _q_sourceRowsMoved(QModelIndex,int,int,QModelIndex,int))
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#if QT_VERSION >= 0x050000 // Qt4's moc fails to evaluate QT_VERSION_CHECK(5, 0, 0) correctly
Q_PRIVATE_SLOT(d_func(), void _q_sourceDataChanged(QModelIndex,QModelIndex,QVector<int>))
#else
Q_PRIVATE_SLOT(d_func(), void _q_sourceDataChanged(QModelIndex,QModelIndex))