Floater - added error handling
authorTomasz Olszak <olszak.tomasz@gmail.com>
Mon, 24 Jun 2013 19:53:17 +0000 (19:53 +0000)
committerJarosław Staniek <staniek@kde.org>
Mon, 24 Jun 2013 22:48:58 +0000 (00:48 +0200)
Change-Id: I693fd292bdb71afaa387411c1c2bf9cfef389a53
Reviewed-by: Jarosław Staniek <staniek@kde.org>
src/styles/Floater.qml

index 326bdd2..fd103d9 100644 (file)
@@ -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 {