From e0a2d8ee05c932273a54b1f7b6eba6f9f4a9d6b4 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 24 Aug 2011 14:36:16 +0200 Subject: [PATCH] QmlProfilerTool: Take -recordStart parameter into account Change-Id: Ib371e73d7416409e5c102155efbd0257676567f4 Reviewed-on: http://codereview.qt.nokia.com/3497 Reviewed-by: Qt Sanity Bot Reviewed-by: Christiaan Janssen --- src/tools/qmlprofiler/qmlprofilerapplication.cpp | 3 +-- src/tools/qmlprofiler/qmlprofilerapplication.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tools/qmlprofiler/qmlprofilerapplication.cpp b/src/tools/qmlprofiler/qmlprofilerapplication.cpp index dcfc7017c8b..ab1e0350141 100644 --- a/src/tools/qmlprofiler/qmlprofilerapplication.cpp +++ b/src/tools/qmlprofiler/qmlprofilerapplication.cpp @@ -80,7 +80,6 @@ QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) : m_tracePrefix("trace"), m_hostName(QLatin1String("127.0.0.1")), m_port(3768), - m_recordFromStart(false), m_verbose(false), m_quitAfterSave(false), m_traceClient(&m_connection), @@ -139,7 +138,7 @@ bool QmlProfilerApplication::parseArguments() return false; } } else if (arg == "-fromStart") { - m_recordFromStart = true; + m_traceClient.setRecording(true); } else if (arg == "-help" || arg == "-h" || arg == "/h" || arg == "/?") { return false; } else if (arg == "-verbose" || arg == "-v") { diff --git a/src/tools/qmlprofiler/qmlprofilerapplication.h b/src/tools/qmlprofiler/qmlprofilerapplication.h index 3bbed05ea14..5bc0ff0a1ed 100644 --- a/src/tools/qmlprofiler/qmlprofilerapplication.h +++ b/src/tools/qmlprofiler/qmlprofilerapplication.h @@ -92,7 +92,6 @@ private: QString m_hostName; quint16 m_port; - bool m_recordFromStart; bool m_verbose; bool m_quitAfterSave;