summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;