forked from qt-creator/qt-creator
QmlProfiler: method for getting modelId from AbstractTimelineModel
Change-Id: I8e20f70b0e6959f32e1a6e8731cab73da07986b9 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -70,6 +70,12 @@ bool AbstractTimelineModel::isEmpty() const
|
|||||||
return count() == 0;
|
return count() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int AbstractTimelineModel::modelId() const
|
||||||
|
{
|
||||||
|
Q_D(const AbstractTimelineModel);
|
||||||
|
return d->modelId;
|
||||||
|
}
|
||||||
|
|
||||||
int AbstractTimelineModel::rowHeight(int rowNumber) const
|
int AbstractTimelineModel::rowHeight(int rowNumber) const
|
||||||
{
|
{
|
||||||
Q_D(const AbstractTimelineModel);
|
Q_D(const AbstractTimelineModel);
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public:
|
|||||||
// Trivial methods implemented by the abstract model itself
|
// Trivial methods implemented by the abstract model itself
|
||||||
void setModelManager(QmlProfilerModelManager *modelManager);
|
void setModelManager(QmlProfilerModelManager *modelManager);
|
||||||
bool isEmpty() const;
|
bool isEmpty() const;
|
||||||
|
int modelId() const;
|
||||||
|
|
||||||
// Methods are directly passed on to the private model and relying on its virtual methods.
|
// Methods are directly passed on to the private model and relying on its virtual methods.
|
||||||
int rowHeight(int rowNumber) const;
|
int rowHeight(int rowNumber) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user