Commit 1f46fca3 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Remove getState() methods



A numerical representation of "state" is not so useful after all.

Change-Id: I7fc3ae08a2fd44000b5543f4ba25730a8d79358d
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 5ceb0b68
......@@ -190,12 +190,6 @@ qint64 AbstractTimelineModel::traceDuration() const
return d->modelManager->traceTime()->duration();
}
int AbstractTimelineModel::getState() const
{
Q_D(const AbstractTimelineModel);
return (int)d->modelManager->state();
}
const QVariantMap AbstractTimelineModel::getEventLocation(int index) const
{
Q_UNUSED(index);
......
......@@ -62,7 +62,6 @@ public:
Q_INVOKABLE qint64 traceStartTime() const;
Q_INVOKABLE qint64 traceEndTime() const;
Q_INVOKABLE qint64 traceDuration() const;
Q_INVOKABLE int getState() const;
Q_INVOKABLE qint64 getDuration(int index) const;
Q_INVOKABLE qint64 getStartTime(int index) const;
Q_INVOKABLE qint64 getEndTime(int index) const;
......
......@@ -76,12 +76,6 @@ Rectangle {
Connections {
target: qmlProfilerModelProxy
onStateChanged: {
// Clear if model is empty.
if (qmlProfilerModelProxy.getState() === 0)
root.clear();
backgroundMarks.requestPaint()
}
onDataAvailable: {
view.clearData();
zoomControl.setRange(qmlProfilerModelProxy.traceStartTime(),
......@@ -89,6 +83,7 @@ Rectangle {
qmlProfilerModelProxy.traceDuration()/10);
view.requestPaint();
}
onStateChanged: backgroundMarks.requestPaint()
onExpandedChanged: backgroundMarks.requestPaint()
onRowHeightChanged: backgroundMarks.requestPaint()
}
......
......@@ -286,11 +286,5 @@ qint64 TimelineModelAggregator::traceDuration() const
return d->modelManager->traceTime()->duration();
}
int TimelineModelAggregator::getState() const
{
return (int)d->modelManager->state();
}
} // namespace Internal
} // namespace QmlProfiler
......@@ -54,7 +54,6 @@ public:
Q_INVOKABLE qint64 traceStartTime() const;
Q_INVOKABLE qint64 traceEndTime() const;
Q_INVOKABLE qint64 traceDuration() const;
Q_INVOKABLE int getState() const;
bool isEmpty() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment