X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbasichandler.cpp;h=df5eb99e96243ec27e670e62dd57949ecdf1dfc8;hp=7e866e95290edc584a0a44347c3e921b220c14a5;hb=35ca85f1c4371ee28d00d5ff0195a5b44aadb299;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/common/basichandler.cpp b/src/common/basichandler.cpp index 7e866e95..df5eb99e 100644 --- a/src/common/basichandler.cpp +++ b/src/common/basichandler.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -52,7 +52,11 @@ const QHash &BasicHandler::handlerHash() { if (!_initDone) { for (int i = metaObject()->methodOffset(); i < metaObject()->methodCount(); i++) { - QString methodSignature(metaObject()->method(i).signature()); +#if QT_VERSION >= 0x050000 + QString methodSignature = metaObject()->method(i).methodSignature(); +#else + QString methodSignature = metaObject()->method(i).signature(); +#endif if (methodSignature.startsWith("defaultHandler")) { _defaultHandler = i; continue;