diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2014-08-22 03:55:34 +0400 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2014-08-22 03:55:34 +0400 |
commit | 12eb26431f03f5ed3c634d647b1581572039112d (patch) | |
tree | a827af54d07919cae8cce5135d5652c76537156c /src/Connection.h | |
parent | 4efabcea5c5f6aff6de5d69500044429e8d9c053 (diff) |
Replace all uses of QT_VERSION_CHECK with explicit version.
Qt4's moc is not able to expand QT_VERSION_CHECK which may lead
to invalid codegen when used for backwards compatibility work.
Replaced all occurances with explicit check against numeric
version which are treated correctly. Even though bad interactions
might be rare we should no longer use this macro as long as we
want to compile with Qt 4. Also see:
http://lists.qt-project.org/pipermail/interest/2013-August/008351.html
Diffstat (limited to 'src/Connection.h')
-rw-r--r-- | src/Connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Connection.h b/src/Connection.h index 7f8922337..53518ecb2 100644 --- a/src/Connection.h +++ b/src/Connection.h @@ -106,7 +106,7 @@ class Connection : public QObject { #endif }; -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) +#if QT_VERSION < 0x050000 Q_DECLARE_METATYPE(QAbstractSocket::SocketError) #endif |