summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-14 00:17:19 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-14 00:17:19 (GMT)
commit4bff499601509355cd4e2166357d7aa6f08f0b1c (patch)
tree6e54dc4551384350a08529cdbb66ca3169ec52f9 /tools/qmlviewer
parent74079574c31b41982357e8f809da4686a5d0fd75 (diff)
downloadQt-4bff499601509355cd4e2166357d7aa6f08f0b1c.zip
Qt-4bff499601509355cd4e2166357d7aa6f08f0b1c.tar.gz
Qt-4bff499601509355cd4e2166357d7aa6f08f0b1c.tar.bz2
Basic KeyProxy support.
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index 548434a..cdabd86 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -142,6 +142,7 @@ QmlViewer::QmlViewer(QWidget *parent, Qt::WindowFlags flags)
canvas->setAttribute(Qt::WA_OpaquePaintEvent);
canvas->setAttribute(Qt::WA_NoSystemBackground);
canvas->setContentResizable(!skin || !scaleSkin);
+ canvas->setFocus();
QObject::connect(canvas, SIGNAL(sceneResized(QSize)), this, SLOT(sceneResized(QSize)));