summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-01 23:11:13 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-01 23:11:13 (GMT)
commite1aa5c3641ba3945e2e6a7b4c37c394eece53dd0 (patch)
tree8cc52072396f0bf3cd6bd9bc8820694df949888e /src/declarative/util
parent5bfe57bbd1e6055e9b2d70d0b4c28052fefce430 (diff)
downloadQt-e1aa5c3641ba3945e2e6a7b4c37c394eece53dd0.zip
Qt-e1aa5c3641ba3945e2e6a7b4c37c394eece53dd0.tar.gz
Qt-e1aa5c3641ba3945e2e6a7b4c37c394eece53dd0.tar.bz2
Setting the same source again causes reload.
Task-number: QTBUG-8623
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qdeclarativeview.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/declarative/util/qdeclarativeview.cpp b/src/declarative/util/qdeclarativeview.cpp
index 6fe5bf3..a3c372d 100644
--- a/src/declarative/util/qdeclarativeview.cpp
+++ b/src/declarative/util/qdeclarativeview.cpp
@@ -282,13 +282,14 @@ QDeclarativeView::~QDeclarativeView()
/*!
Sets the source to the \a url, loads the QML component and instantiates it.
+
+ Calling this methods multiple times with the same url will result
+ in the QML being reloaded.
*/
void QDeclarativeView::setSource(const QUrl& url)
{
- if (url != d->source) {
- d->source = url;
- d->execute();
- }
+ d->source = url;
+ d->execute();
}
/*!