From 5a71082328a26e347b8ffec60988af92a3b19d94 Mon Sep 17 00:00:00 2001 From: ck <qt-info@nokia.com> Date: Mon, 20 Jul 2009 16:21:43 +0200 Subject: [PATCH] Made use of Qt::UniqueConnection dependent on version >= 4.6. --- share/qtcreator/gdbmacros/gdbmacros.cpp | 2 ++ tests/auto/debugger/main.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index 5c3c79e6ae3..0820cdc62b9 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -2329,7 +2329,9 @@ static const char *qConnectionType(uint type) case Qt::QueuedConnection: output = "queued"; break; case Qt::BlockingQueuedConnection: output = "blockingqueued"; break; case 3: output = "autocompat"; break; +#if QT_VERSION >= 0x040600 case Qt::UniqueConnection: output = "unique"; break; +#endif }; return output; }; diff --git a/tests/auto/debugger/main.cpp b/tests/auto/debugger/main.cpp index 413d4d64c86..4260e21ee0d 100644 --- a/tests/auto/debugger/main.cpp +++ b/tests/auto/debugger/main.cpp @@ -1075,7 +1075,9 @@ static const char *connectionType(uint type) case Qt::QueuedConnection: output = "queued"; break; case Qt::BlockingQueuedConnection: output = "blockingqueued"; break; case 3: output = "autocompat"; break; +#if QT_VERSION >= 0x040600 case Qt::UniqueConnection: output = "unique"; break; +#endif }; return output; }; -- GitLab