diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-14 00:17:19 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-14 00:17:19 (GMT) |
commit | 4bff499601509355cd4e2166357d7aa6f08f0b1c (patch) | |
tree | 6e54dc4551384350a08529cdbb66ca3169ec52f9 /tools/qmlviewer | |
parent | 74079574c31b41982357e8f809da4686a5d0fd75 (diff) | |
download | Qt-4bff499601509355cd4e2166357d7aa6f08f0b1c.zip Qt-4bff499601509355cd4e2166357d7aa6f08f0b1c.tar.gz Qt-4bff499601509355cd4e2166357d7aa6f08f0b1c.tar.bz2 |
Basic KeyProxy support.
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 1 |
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))); |