Commit f6d8d484 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: method for getting modelId from AbstractTimelineModel



Change-Id: I8e20f70b0e6959f32e1a6e8731cab73da07986b9
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 71ac0956
......@@ -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);
......
......@@ -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;
......
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