summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-09-22 18:03:17 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-09-29 13:08:20 +0200
commitf6d8d4843d910cd55f04d220116fa0ee5c19b532 (patch)
treef6d77949761bc5e23f411c4d6d2acded6dd48d3d /src/plugins/qmlprofiler
parent71ac095612c05d0179a00f847bdf2348e8850149 (diff)
downloadqt-creator-f6d8d4843d910cd55f04d220116fa0ee5c19b532.tar.gz
QmlProfiler: method for getting modelId from AbstractTimelineModel
Change-Id: I8e20f70b0e6959f32e1a6e8731cab73da07986b9 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/abstracttimelinemodel.cpp6
-rw-r--r--src/plugins/qmlprofiler/abstracttimelinemodel.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/abstracttimelinemodel.cpp b/src/plugins/qmlprofiler/abstracttimelinemodel.cpp
index 0ee7673b4d..b2d95979a7 100644
--- a/src/plugins/qmlprofiler/abstracttimelinemodel.cpp
+++ b/src/plugins/qmlprofiler/abstracttimelinemodel.cpp
@@ -70,6 +70,12 @@ bool AbstractTimelineModel::isEmpty() const
return count() == 0;
}
+int AbstractTimelineModel::modelId() const
+{
+ Q_D(const AbstractTimelineModel);
+ return d->modelId;
+}
+
int AbstractTimelineModel::rowHeight(int rowNumber) const
{
Q_D(const AbstractTimelineModel);
diff --git a/src/plugins/qmlprofiler/abstracttimelinemodel.h b/src/plugins/qmlprofiler/abstracttimelinemodel.h
index 35cb593aae..3bd8812520 100644
--- a/src/plugins/qmlprofiler/abstracttimelinemodel.h
+++ b/src/plugins/qmlprofiler/abstracttimelinemodel.h
@@ -54,6 +54,7 @@ public:
// Trivial methods implemented by the abstract model itself
void setModelManager(QmlProfilerModelManager *modelManager);
bool isEmpty() const;
+ int modelId() const;
// Methods are directly passed on to the private model and relying on its virtual methods.
int rowHeight(int rowNumber) const;