Some of the QML C++ methods should be slots.
Change-Id: Ib9465cf2a7638d013ce831f49ed0177741c22ab0
This commit is contained in:
parent
1ffe4f1b24
commit
9bf28fbf0e
|
@ -73,7 +73,6 @@ public:
|
||||||
virtual ~QSGView();
|
virtual ~QSGView();
|
||||||
|
|
||||||
QUrl source() const;
|
QUrl source() const;
|
||||||
void setSource(const QUrl&);
|
|
||||||
|
|
||||||
QDeclarativeEngine* engine() const;
|
QDeclarativeEngine* engine() const;
|
||||||
QDeclarativeContext* rootContext() const;
|
QDeclarativeContext* rootContext() const;
|
||||||
|
@ -92,6 +91,9 @@ public:
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const;
|
||||||
QSize initialSize() const;
|
QSize initialSize() const;
|
||||||
|
|
||||||
|
public Q_SLOTS:
|
||||||
|
void setSource(const QUrl&);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void statusChanged(QSGView::Status);
|
void statusChanged(QSGView::Status);
|
||||||
|
|
||||||
|
|
|
@ -96,13 +96,14 @@ public:
|
||||||
virtual QObject *beginCreate(QDeclarativeContext *);
|
virtual QObject *beginCreate(QDeclarativeContext *);
|
||||||
virtual void completeCreate();
|
virtual void completeCreate();
|
||||||
|
|
||||||
void loadUrl(const QUrl &url);
|
|
||||||
void setData(const QByteArray &, const QUrl &baseUrl);
|
|
||||||
|
|
||||||
QDeclarativeContext *creationContext() const;
|
QDeclarativeContext *creationContext() const;
|
||||||
|
|
||||||
static QDeclarativeComponentAttached *qmlAttachedProperties(QObject *);
|
static QDeclarativeComponentAttached *qmlAttachedProperties(QObject *);
|
||||||
|
|
||||||
|
public Q_SLOTS:
|
||||||
|
void loadUrl(const QUrl &url);
|
||||||
|
void setData(const QByteArray &, const QUrl &baseUrl);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void statusChanged(QDeclarativeComponent::Status);
|
void statusChanged(QDeclarativeComponent::Status);
|
||||||
void progressChanged(qreal);
|
void progressChanged(qreal);
|
||||||
|
|
|
@ -73,7 +73,6 @@ public:
|
||||||
virtual ~QDeclarativeView();
|
virtual ~QDeclarativeView();
|
||||||
|
|
||||||
QUrl source() const;
|
QUrl source() const;
|
||||||
void setSource(const QUrl&);
|
|
||||||
|
|
||||||
QDeclarativeEngine* engine() const;
|
QDeclarativeEngine* engine() const;
|
||||||
QDeclarativeContext* rootContext() const;
|
QDeclarativeContext* rootContext() const;
|
||||||
|
@ -92,6 +91,9 @@ public:
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const;
|
||||||
QSize initialSize() const;
|
QSize initialSize() const;
|
||||||
|
|
||||||
|
public Q_SLOTS:
|
||||||
|
void setSource(const QUrl&);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void sceneResized(QSize size); // ???
|
void sceneResized(QSize size); // ???
|
||||||
void statusChanged(QDeclarativeView::Status);
|
void statusChanged(QDeclarativeView::Status);
|
||||||
|
|
Loading…
Reference in New Issue