Skip to content

Commit

Permalink
Some of the QML C++ methods should be slots.
Browse files Browse the repository at this point in the history
Change-Id: Ib9465cf2a7638d013ce831f49ed0177741c22ab0
  • Loading branch information
Martin Jones committed May 20, 2011
1 parent 1ffe4f1 commit 9bf28fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/declarative/items/qsgview.h
Expand Up @@ -73,7 +73,6 @@ class Q_DECLARATIVE_EXPORT QSGView : public QSGCanvas
virtual ~QSGView();

QUrl source() const;
void setSource(const QUrl&);

QDeclarativeEngine* engine() const;
QDeclarativeContext* rootContext() const;
Expand All @@ -92,6 +91,9 @@ class Q_DECLARATIVE_EXPORT QSGView : public QSGCanvas
QSize sizeHint() const;
QSize initialSize() const;

public Q_SLOTS:
void setSource(const QUrl&);

Q_SIGNALS:
void statusChanged(QSGView::Status);

Expand Down
7 changes: 4 additions & 3 deletions src/declarative/qml/qdeclarativecomponent.h
Expand Up @@ -96,13 +96,14 @@ class Q_DECLARATIVE_EXPORT QDeclarativeComponent : public QObject
virtual QObject *beginCreate(QDeclarativeContext *);
virtual void completeCreate();

void loadUrl(const QUrl &url);
void setData(const QByteArray &, const QUrl &baseUrl);

QDeclarativeContext *creationContext() const;

static QDeclarativeComponentAttached *qmlAttachedProperties(QObject *);

public Q_SLOTS:
void loadUrl(const QUrl &url);
void setData(const QByteArray &, const QUrl &baseUrl);

Q_SIGNALS:
void statusChanged(QDeclarativeComponent::Status);
void progressChanged(qreal);
Expand Down
4 changes: 3 additions & 1 deletion src/declarative/util/qdeclarativeview.h
Expand Up @@ -73,7 +73,6 @@ class Q_DECLARATIVE_EXPORT QDeclarativeView : public QGraphicsView
virtual ~QDeclarativeView();

QUrl source() const;
void setSource(const QUrl&);

QDeclarativeEngine* engine() const;
QDeclarativeContext* rootContext() const;
Expand All @@ -92,6 +91,9 @@ class Q_DECLARATIVE_EXPORT QDeclarativeView : public QGraphicsView
QSize sizeHint() const;
QSize initialSize() const;

public Q_SLOTS:
void setSource(const QUrl&);

Q_SIGNALS:
void sceneResized(QSize size); // ???
void statusChanged(QDeclarativeView::Status);
Expand Down

0 comments on commit 9bf28fb

Please sign in to comment.