aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/qmlprofilerapplication.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-05-19 14:50:06 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-05-21 12:54:42 +0000
commit455e9153eb13399b1b1b711075d77b699aabfbef (patch)
treebeedf6ec92f7bc63dd5a23897d8a4f8b8807a543 /tools/qmlprofiler/qmlprofilerapplication.h
parentbb085ff9272acd1ee8cb52d0c7b1e2d2a9116878 (diff)
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>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerapplication.h')
-rw-r--r--tools/qmlprofiler/qmlprofilerapplication.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmlprofiler/qmlprofilerapplication.h b/tools/qmlprofiler/qmlprofilerapplication.h
index aa63f54dc3..1b1131e33e 100644
--- a/tools/qmlprofiler/qmlprofilerapplication.h
+++ b/tools/qmlprofiler/qmlprofilerapplication.h
@@ -53,6 +53,7 @@ public:
public slots:
void userCommand(const QString &command);
+ void notifyTraceStarted();
private slots:
void run();
@@ -66,7 +67,6 @@ private slots:
void traceClientEnabled();
void profilerClientEnabled();
void traceFinished();
- void recordingChanged();
void print(const QString &line);
void logError(const QString &error);
@@ -94,6 +94,7 @@ private:
quint16 m_port;
bool m_verbose;
bool m_quitAfterSave;
+ bool m_recording;
QQmlDebugConnection m_connection;
QmlProfilerClient m_qmlProfilerClient;