Use qt_subtract_from_timeout instead of duplicating qt_timeout_value
authorDaniel Teske <daniel.teske@theqtcompany.com>
Thu, 15 Jan 2015 15:34:53 +0000 (16:34 +0100)
committerDaniel Teske <daniel.teske@theqtcompany.com>
Tue, 14 Apr 2015 15:20:46 +0000 (15:20 +0000)
commitac31d397a8a82a0a5b5b1276025e55371c3c9972
tree4834bb3592666bc15e14da3aaf1437cfdf8827fa
parent181824f2497b3c874acce0f4a54a5580ee64ea90
Use qt_subtract_from_timeout instead of duplicating qt_timeout_value

The same function was duplicated 5 times in qtbase, so create one copy
to rule them all and use it also in QtDeclarative.

Change-Id: I4e39a7ee0541ce4fe9710cea344e537ee011bbe9
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
14 files changed:
src/plugins/qmltooling/qmldbg_tcp/qmldbg_tcp.pro
src/plugins/qmltooling/shared/qpacketprotocol.cpp
src/quickwidgets/qquickwidget_p.h
tests/auto/qml/debugger/qdebugmessageservice/qdebugmessageservice.pro
tests/auto/qml/debugger/qpacketprotocol/qpacketprotocol.pro
tests/auto/qml/debugger/qqmldebugclient/qqmldebugclient.pro
tests/auto/qml/debugger/qqmldebugjs/qqmldebugjs.pro
tests/auto/qml/debugger/qqmldebugservice/qqmldebugservice.pro
tests/auto/qml/debugger/qqmlenginecontrol/qqmlenginecontrol.pro
tests/auto/qml/debugger/qqmlenginedebuginspectorintegrationtest/qqmlenginedebuginspectorintegrationtest.pro
tests/auto/qml/debugger/qqmlinspector/qqmlinspector.pro
tests/auto/qml/debugger/qqmlprofilerservice/qqmlprofilerservice.pro
tests/auto/qml/debugger/qv4profilerservice/qv4profilerservice.pro
tools/qmlprofiler/qpacketprotocol.cpp