forked from qt-creator/qt-creator
QmlProfiler: Initial conversion from Quick 1 to Quick 2
Updated class names and functions. Fixed imports. Change-Id: I5f12e3a108a0e60c091acc9c415ff77e52118029 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
#ifndef QMLPROFILERTRACEVIEW_H
|
||||
#define QMLPROFILERTRACEVIEW_H
|
||||
|
||||
#include <QDeclarativeView>
|
||||
#include <QQuickView>
|
||||
#include <QWidget>
|
||||
|
||||
namespace Analyzer {
|
||||
class IAnalyzerTool;
|
||||
@@ -74,12 +75,12 @@ private:
|
||||
qint64 m_endTime;
|
||||
};
|
||||
|
||||
class ScrollableDeclarativeView : public QDeclarativeView
|
||||
class ScrollableQuickView : public QQuickView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ScrollableDeclarativeView(QWidget *parent = 0);
|
||||
~ScrollableDeclarativeView();
|
||||
explicit ScrollableQuickView(QQuickView *parent = 0);
|
||||
~ScrollableQuickView();
|
||||
protected:
|
||||
void scrollContentsBy(int dx, int dy);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user