QmlProfiler: Allow multiple events views loaded from plugins

Change-Id: Ifaf4e63f4a843a42a1a22f005e87d8c1a4604686
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-12-04 16:54:58 +01:00
parent e4efb9bb3b
commit ffa0c86617
6 changed files with 69 additions and 32 deletions

View File

@@ -32,6 +32,7 @@
#define QMLPROFILEREVENTSVIEW_H
#include "qmlprofiler_global.h"
#include "qmlprofilermodelmanager.h"
#include <QAbstractItemModel>
#include <QWidget>
@@ -51,12 +52,21 @@ public:
signals:
void gotoSourceLocation(const QString &fileName, int lineNumber, int columnNumber);
void typeSelected(int typeIndex);
void showFullRange();
public slots:
virtual void selectByTypeId(int typeIndex) = 0;
virtual void onVisibleFeaturesChanged(quint64 features) = 0;
};
class QMLPROFILER_EXPORT QmlProfilerEventsViewFactory : public QObject
{
Q_OBJECT
public:
virtual QList<QmlProfilerEventsView *> create(QWidget *parent,
QmlProfilerModelManager *manager) = 0;
};
}
#endif // QMLPROFILEREVENTSVIEW_H