forked from qt-creator/qt-creator
QmlProfiler: Require model manager when constructing timeline models
This relieves us of the headaches created by figuring out what should happen if the model manager is changed later. Extension models can be safely created through a factory. Change-Id: I8cf8fd6d639e4e6c9da66351ea44cfc35fd614a5 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -60,7 +60,7 @@ public:
|
||||
int typeId;
|
||||
};
|
||||
|
||||
QmlProfilerAnimationsModel(QObject *parent = 0);
|
||||
QmlProfilerAnimationsModel(QmlProfilerModelManager *manager, QObject *parent = 0);
|
||||
|
||||
int rowMaxValue(int rowNumber) const;
|
||||
|
||||
@@ -72,7 +72,6 @@ public:
|
||||
|
||||
QVariantList labels() const;
|
||||
QVariantMap details(int index) const;
|
||||
quint64 features() const;
|
||||
|
||||
bool accepted(const QmlProfilerDataModel::QmlEventTypeData &event) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user