QmlProfiler: method for getting modelId from AbstractTimelineModel

Change-Id: I8e20f70b0e6959f32e1a6e8731cab73da07986b9
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-09-22 18:03:17 +02:00
parent 71ac095612
commit f6d8d4843d
2 changed files with 7 additions and 0 deletions

View File

@@ -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);

View File

@@ -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;