qmlprofiler: Clean up recording state mess
authorUlf Hermann <ulf.hermann@theqtcompany.com>
Tue, 19 May 2015 12:50:06 +0000 (14:50 +0200)
committerUlf Hermann <ulf.hermann@theqtcompany.com>
Thu, 21 May 2015 12:54:42 +0000 (12:54 +0000)
commit455e9153eb13399b1b1b711075d77b699aabfbef
treebeedf6ec92f7bc63dd5a23897d8a4f8b8807a543
parentbb085ff9272acd1ee8cb52d0c7b1e2d2a9116878
qmlprofiler: Clean up recording state mess

The recording state is a global property of the profiler client, it has
to match the application's recording status as well as possible, and
the user can set an initial target value with a command line parameter.

This way we don't get strange error messages when the application quits
by itself and properly sends all the data before.

Task-number: QTBUG-43066
Change-Id: Id93aa7fb940f870c8f16cea8427c38aab450f864
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
tools/qmlprofiler/qmlprofilerapplication.cpp
tools/qmlprofiler/qmlprofilerapplication.h
tools/qmlprofiler/qmlprofilerclient.cpp
tools/qmlprofiler/qmlprofilerclient.h