summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2014-08-17 13:39:48 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2014-08-18 13:51:58 +0200
commit56fd0a1e5f293d04b071877d5e95e870a3e9c802 (patch)
tree4b75c6a14e971f94cf032690c5134534225fc7c1 /examples
parent6a716db7f7db4f2f4dbf2c13452b8419f5a6f25b (diff)
qml-compositor: Clean up some unnecessary logging.
Change-Id: I1072d6efa059e01d8dcba98c90320bcc242d1c0f Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qml-compositor/WindowContainer.qml1
-rw-r--r--examples/qml-compositor/main.qml7
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml-compositor/WindowContainer.qml b/examples/qml-compositor/WindowContainer.qml
index f1b212094..5e073298f 100644
--- a/examples/qml-compositor/WindowContainer.qml
+++ b/examples/qml-compositor/WindowContainer.qml
@@ -54,7 +54,6 @@ Item {
visible: isFullscreen || !root.hasFullscreenWindow
onVisibleChanged: {
child.surface.clientRenderingEnabled = visible
- console.log("visibility changed: " + visible);
}
opacity: 0
diff --git a/examples/qml-compositor/main.qml b/examples/qml-compositor/main.qml
index 9fafccb86..a8f038324 100644
--- a/examples/qml-compositor/main.qml
+++ b/examples/qml-compositor/main.qml
@@ -48,8 +48,6 @@ Item {
property variant selectedWindow: null
property bool hasFullscreenWindow: typeof compositor != "undefined" && compositor.fullscreenSurface !== null
- onHasFullscreenWindowChanged: console.log("has fullscreen window: " + hasFullscreenWindow);
-
Image {
id: background
Behavior on opacity {
@@ -84,8 +82,11 @@ Item {
function windowAdded(window) {
var windowContainerComponent = Qt.createComponent("WindowContainer.qml");
+ if (windowContainerComponent.status != Component.Ready) {
+ console.warn("Error loading WindowContainer.qml: " + windowContainerComponent.errorString());
+ return;
+ }
var windowContainer = windowContainerComponent.createObject(root);
- console.log(windowContainerComponent.errorString());
windowContainer.child = compositor.item(window);
windowContainer.child.parent = windowContainer;