diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-02-09 15:29:58 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-02-10 18:57:11 +0100 |
commit | a07d3fb9bda20d85123d46a301c4957307100c8b (patch) | |
tree | 2605755c0fa292ff193545f861c06fe0f01e99b8 /src/qmltest/quicktest.cpp | |
parent | 732e3b1e5629eb4a8facb5f341fb56961fe06e06 (diff) |
QmlTest: Move declaration of helper qWaitForSignal() to a header
Otherwise, the default parameter declaration causes a clash in CMake
Unity (Jumbo) builds.
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Ida72b30debfa97b6fc2e523b19ef219425c2a0c2
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmltest/quicktest.cpp')
-rw-r--r-- | src/qmltest/quicktest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index 1fd36edd62..0ecb48dd10 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -223,7 +223,7 @@ static void handleCompileErrors( results.stopLogging(); } -bool qWaitForSignal(QObject *obj, const char* signal, int timeout = 5000) +bool qWaitForSignal(QObject *obj, const char* signal, int timeout) { QSignalSpy spy(obj, signal); QElapsedTimer timer; |