summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-03-14 23:21:42 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-03-14 23:21:42 (GMT)
commit99c3ba94e985520f1095532fa930f0f0591d407c (patch)
tree029f1e206551fcf757bb1cad62e6234670cda71d /src/declarative/graphicsitems
parente4675125c13fa58db82ffe0e2738003a544352ee (diff)
downloadQt-99c3ba94e985520f1095532fa930f0f0591d407c.zip
Qt-99c3ba94e985520f1095532fa930f0f0591d407c.tar.gz
Qt-99c3ba94e985520f1095532fa930f0f0591d407c.tar.bz2
Make the loader a focusscope.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeloader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeloader.cpp b/src/declarative/graphicsitems/qdeclarativeloader.cpp
index 61a32e5..6dbcd16 100644
--- a/src/declarative/graphicsitems/qdeclarativeloader.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeloader.cpp
@@ -155,6 +155,8 @@ void QDeclarativeLoaderPrivate::initResize()
QDeclarativeLoader::QDeclarativeLoader(QDeclarativeItem *parent)
: QDeclarativeItem(*(new QDeclarativeLoaderPrivate), parent)
{
+ Q_D(QDeclarativeItem);
+ d->flags |= QGraphicsItem::ItemIsFocusScope;
}
/*!
@@ -348,7 +350,7 @@ QDeclarativeLoader::Status QDeclarativeLoader::status() const
/*!
\qmlproperty real Loader::progress
-This property holds the progress of loading QML data from the network, from
+This property holds the progress of loading QML data from the network, from
0.0 (nothing loaded) to 1.0 (finished). Most QML files are quite small, so
this value will rapidly change from 0 to 1.