aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-03-25 15:52:33 +0100
committerUlf Hermann <ulf.hermann@digia.com>2014-03-31 10:34:38 +0200
commit7d23ee717d9eb42acac2aa0b9fe4231d76e9b9fd (patch)
tree6085f8cc8abef925c080a619392c7670befbbf86 /src/plugins/qmlprofiler
parentc4fa365cbba5c7355792676d2c0a35d56cfb6b87 (diff)
QmlProfiler: Remove dead code
No need to keep properties around that aren't read anywhere. Change-Id: Ie9300ad646466a6a2368f644a420d8654891805f Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/qml/MainView.qml17
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertraceview.cpp45
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertraceview.h6
3 files changed, 0 insertions, 68 deletions
diff --git a/src/plugins/qmlprofiler/qml/MainView.qml b/src/plugins/qmlprofiler/qml/MainView.qml
index c4aceb6ef9d..f32395ab2ea 100644
--- a/src/plugins/qmlprofiler/qml/MainView.qml
+++ b/src/plugins/qmlprofiler/qml/MainView.qml
@@ -60,12 +60,6 @@ Rectangle {
signal changeToolTip(string text)
- property bool recordingEnabled: false
- property bool appKilled : false
-
- property date recordingStartDate
- property real elapsedTime
-
color: "#dcdcdc"
// ***** connections with external objects
@@ -114,7 +108,6 @@ Rectangle {
function clearData() {
view.clearData();
- appKilled = false;
hideRangeDetails();
selectionRangeMode = false;
updateRangeButton();
@@ -128,7 +121,6 @@ Rectangle {
function clearAll() {
clearDisplay();
- elapsedTime = 0;
}
function nextEvent() {
@@ -221,15 +213,6 @@ Rectangle {
}
}
- onRecordingEnabledChanged: {
- if (recordingEnabled) {
- recordingStartDate = new Date();
- elapsedTime = 0;
- } else {
- elapsedTime = (new Date() - recordingStartDate)/1000.0;
- }
- }
-
Flickable {
id: labelsflick
flickableDirection: Flickable.VerticalFlick
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
index 4e5dd50e936..096a5dda6d2 100644
--- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
@@ -157,12 +157,6 @@ QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, Analyzer::IAnalyzerT
d->m_modelProxy);
d->m_profilerState = profilerState;
- connect(d->m_profilerState, SIGNAL(stateChanged()),
- this, SLOT(profilerStateChanged()));
- connect(d->m_profilerState, SIGNAL(clientRecordingChanged()),
- this, SLOT(clientRecordingChanged()));
- connect(d->m_profilerState, SIGNAL(serverRecordingChanged()),
- this, SLOT(serverRecordingChanged()));
// Minimum height: 5 rows of 20 pixels + scrollbar of 50 pixels + 20 pixels margin
setMinimumHeight(170);
@@ -455,21 +449,6 @@ void QmlProfilerTraceView::showContextMenu(QPoint position)
}
}
-/////////////////////////////////////////////////
-// Tell QML the state of the profiler
-void QmlProfilerTraceView::setRecording(bool recording)
-{
- QQuickItem *rootObject = d->m_mainView->rootObject();
- if (rootObject)
- rootObject->setProperty("recordingEnabled", QVariant(recording));
-}
-
-void QmlProfilerTraceView::setAppKilled()
-{
- QQuickItem *rootObject = d->m_mainView->rootObject();
- if (rootObject)
- rootObject->setProperty("appKilled",QVariant(true));
-}
////////////////////////////////////////////////////////////////
// Profiler State
void QmlProfilerTraceView::profilerDataModelStateChanged()
@@ -491,30 +470,6 @@ void QmlProfilerTraceView::profilerDataModelStateChanged()
}
}
-void QmlProfilerTraceView::profilerStateChanged()
-{
- switch (d->m_profilerState->currentState()) {
- case QmlProfilerStateManager::AppKilled : {
- if (d->m_modelManager->state() == QmlProfilerDataState::AcquiringData)
- setAppKilled();
- break;
- }
- default:
- // no special action needed for other states
- break;
- }
-}
-
-void QmlProfilerTraceView::clientRecordingChanged()
-{
- // nothing yet
-}
-
-void QmlProfilerTraceView::serverRecordingChanged()
-{
- setRecording(d->m_profilerState->serverRecording());
-}
-
bool QmlProfilerQuickView::event(QEvent *ev)
{
// We assume context menus can only be triggered by mouse press, mouse release, or
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.h b/src/plugins/qmlprofiler/qmlprofilertraceview.h
index 02005d77ac3..ef2dee74a21 100644
--- a/src/plugins/qmlprofiler/qmlprofilertraceview.h
+++ b/src/plugins/qmlprofiler/qmlprofilertraceview.h
@@ -99,9 +99,6 @@ protected:
virtual void contextMenuEvent(QContextMenuEvent *event);
private slots:
- void profilerStateChanged();
- void clientRecordingChanged();
- void serverRecordingChanged();
void setZoomSliderEnabled(bool enabled);
void setZoomSliderVisible(bool visible);
@@ -121,9 +118,6 @@ signals:
private:
QWidget *createToolbar();
- void setRecording(bool recording);
- void setAppKilled();
-
private:
class QmlProfilerTraceViewPrivate;
QmlProfilerTraceViewPrivate *d;