Warn when attaching Keys to an invalid item
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Wed, 29 Jan 2014 16:23:23 +0000 (17:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Feb 2014 23:24:08 +0000 (00:24 +0100)
commit6c840c70d61c3ae277b60a024a086215c743e5b3
tree328a08d7607ccbfcd8894b14aa3f9b5daf51a448
parent024c81a58dfe8b476c4cc181d6357cbab55c70c4
Warn when attaching Keys to an invalid item

Using Window { Keys.onPressed: ... } does not work because window is not
a QQuickItem. Warn at least.

Change-Id: Ibd472f7b551ff2089cbc39ba43da27e6f8e0e97f
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/quick/items/qquickitem.cpp