summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2013-06-24 19:53:17 +0000
committerJarosław Staniek <staniek@kde.org>2013-06-25 00:48:58 +0200
commitf738d13ea6d7286525959cc1035a1f2ba6f56bbe (patch)
tree77cad9696955d4d081b635d592fbcca2b8ea354f
parent201a8391160027b96cda97f9abc1e6eed288a66d (diff)
downloadqtquickcontrols-tizen-f738d13ea6d7286525959cc1035a1f2ba6f56bbe.tar.gz
qtquickcontrols-tizen-f738d13ea6d7286525959cc1035a1f2ba6f56bbe.tar.bz2
qtquickcontrols-tizen-f738d13ea6d7286525959cc1035a1f2ba6f56bbe.zip
Floater - added error handling
Change-Id: I693fd292bdb71afaa387411c1c2bf9cfef389a53 Reviewed-by: Jarosław Staniek <staniek@kde.org>
-rw-r--r--src/styles/Floater.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/styles/Floater.qml b/src/styles/Floater.qml
index 326bdd2..fd103d9 100644
--- a/src/styles/Floater.qml
+++ b/src/styles/Floater.qml
@@ -2,6 +2,7 @@ import QtQuick 2.0
Item {
id: floaterBehavior
+ objectName: "floaterBehavior"
visible: false
property Component content
width: contentLoader ? contentLoader.item.implicitWidth:0
@@ -20,6 +21,7 @@ Item {
id: contentLoader
sourceComponent: content
anchors.fill: parent
+ onStatusChanged: if (status === Loader.Error) console.error("Failed to load content for", floaterBehavior)
}
states: State {