summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativefocusscope.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-11 06:26:30 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-11 06:27:12 (GMT)
commitfef9bb355f964f7a520da0c5e24d165644be1473 (patch)
treee08578baf1398464c6bc3d9c00a65e85ffdcbd63 /src/declarative/graphicsitems/qdeclarativefocusscope.cpp
parent0e9bb332eec2bee29fe736aea76c30c66c69a9d0 (diff)
downloadQt-fef9bb355f964f7a520da0c5e24d165644be1473.zip
Qt-fef9bb355f964f7a520da0c5e24d165644be1473.tar.gz
Qt-fef9bb355f964f7a520da0c5e24d165644be1473.tar.bz2
Minor construction optimizations.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativefocusscope.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativefocusscope.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativefocusscope.cpp b/src/declarative/graphicsitems/qdeclarativefocusscope.cpp
index 384a47b..484df13 100644
--- a/src/declarative/graphicsitems/qdeclarativefocusscope.cpp
+++ b/src/declarative/graphicsitems/qdeclarativefocusscope.cpp
@@ -41,6 +41,8 @@
#include "qdeclarativefocusscope_p.h"
+#include "qdeclarativeitem_p.h"
+
QT_BEGIN_NAMESPACE
/*!
@@ -62,7 +64,8 @@ QT_BEGIN_NAMESPACE
QDeclarativeFocusScope::QDeclarativeFocusScope(QDeclarativeItem *parent) :
QDeclarativeItem(parent)
{
- setFlag(QGraphicsItem::ItemIsFocusScope);
+ Q_D(QDeclarativeItem);
+ d->flags |= QGraphicsItem::ItemIsFocusScope;
}
QDeclarativeFocusScope::~QDeclarativeFocusScope()