X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcontrib%2Flibqxt-2007-10-24%2Fsrc%2Fcore%2Fqxtboundfunctionbase.h;fp=src%2Fcontrib%2Fqxt%2Fqxtboundfunctionbase.h;h=d67ca8e6946256cd515d8e2dade3e6a5ee77f6b2;hp=1be80f0f1859cb1429cbf1ce4f937359554441a3;hb=a634acadbcf6017474f68a3eaf7cb632660e9e49;hpb=cd122ca8e0d2c0ffc5397e0a813c75d791a7e6e3 diff --git a/src/contrib/qxt/qxtboundfunctionbase.h b/src/contrib/libqxt-2007-10-24/src/core/qxtboundfunctionbase.h similarity index 81% rename from src/contrib/qxt/qxtboundfunctionbase.h rename to src/contrib/libqxt-2007-10-24/src/core/qxtboundfunctionbase.h index 1be80f0f..d67ca8e6 100644 --- a/src/contrib/qxt/qxtboundfunctionbase.h +++ b/src/contrib/libqxt-2007-10-24/src/core/qxtboundfunctionbase.h @@ -36,6 +36,10 @@ #include #include +#ifndef QXT_DOXYGEN_RUN + +#define QXT_10_UNUSED Q_UNUSED(p1) Q_UNUSED(p2) Q_UNUSED(p3) Q_UNUSED(p4) Q_UNUSED(p5) Q_UNUSED(p6) Q_UNUSED(p7) Q_UNUSED(p8) Q_UNUSED(p9) Q_UNUSED(p10) + class QxtBoundFunctionBase : public QxtBoundFunction { public: @@ -50,4 +54,7 @@ public: bool invokeBase(Qt::ConnectionType type, QGenericReturnArgument returnValue, QXT_PROTO_10ARGS(QGenericArgument)); }; +#define QXT_ARG(i) ((argCount>i)?QGenericArgument(p ## i .typeName(), p ## i .constData()):QGenericArgument()) +#define QXT_VAR_ARG(i) (p ## i .isValid())?QGenericArgument(p ## i .typeName(), p ## i .constData()):QGenericArgument() +#endif #endif