summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-03-02 10:23:45 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-03-02 10:23:45 (GMT)
commit0998fc069512d0ae2853929489b80f35e0d9d4ae (patch)
treefc4fb4779e367c85b8da65fcd15fd8e26e06dedf
parent62faec229dfe654872d3791bee0a27e5290fff4c (diff)
downloadQt-0998fc069512d0ae2853929489b80f35e0d9d4ae.zip
Qt-0998fc069512d0ae2853929489b80f35e0d9d4ae.tar.gz
Qt-0998fc069512d0ae2853929489b80f35e0d9d4ae.tar.bz2
QDeclarativeView: Make usable in Designer
Make source a designable property, add missing declarations for enumerations. Reviewed-by: akennedy <qt-info@nokia.com>
-rw-r--r--src/declarative/util/qdeclarativeview.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativeview.h b/src/declarative/util/qdeclarativeview.h
index 03d8db3..107f3f9 100644
--- a/src/declarative/util/qdeclarativeview.h
+++ b/src/declarative/util/qdeclarativeview.h
@@ -43,6 +43,7 @@
#define QDECLARATIVEVIEW_H
#include <QtCore/qdatetime.h>
+#include <QtCore/qurl.h>
#include <QtGui/qgraphicssceneevent.h>
#include <QtGui/qgraphicsview.h>
#include <QtGui/qwidget.h>
@@ -64,7 +65,8 @@ class Q_DECLARATIVE_EXPORT QDeclarativeView : public QGraphicsView
Q_OBJECT
Q_PROPERTY(ResizeMode resizeMode READ resizeMode WRITE setResizeMode)
Q_PROPERTY(Status status READ status NOTIFY statusChanged)
-
+ Q_PROPERTY(QUrl source READ source WRITE setSource DESIGNABLE true)
+ Q_ENUMS(ResizeMode Status)
public:
explicit QDeclarativeView(QWidget *parent = 0);
QDeclarativeView(const QUrl &source, QWidget *parent = 0);