From 99c3ba94e985520f1095532fa930f0f0591d407c Mon Sep 17 00:00:00 2001 From: Yann Bodson Date: Mon, 15 Mar 2010 09:21:42 +1000 Subject: Make the loader a focusscope. --- src/declarative/graphicsitems/qdeclarativeloader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v0.12