From a6f8ad0bdffbe99948e5776538677c3d3507f3c4 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 7 Sep 2014 14:00:11 +0200 Subject: [PATCH] use more bindings --- src/plugins/backends/snore/notification.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/backends/snore/notification.qml b/src/plugins/backends/snore/notification.qml index cd59c7b..cf57f38 100644 --- a/src/plugins/backends/snore/notification.qml +++ b/src/plugins/backends/snore/notification.qml @@ -24,10 +24,6 @@ Rectangle { appIcon.source = nAppIcon image.source = nImage root.color = color - - appIcon.height = root.height * 0.30 - - closeButton.height = root.height * 0.20 } MouseArea { @@ -91,7 +87,8 @@ Rectangle { Image { id: appIcon - width: height + height: root.height * 0.30 + width: root.height * 0.30 smooth: true anchors.right: parent.right anchors.rightMargin: 5 @@ -101,7 +98,8 @@ Rectangle { Image { id: closeButton - width: height + height: root.height * 0.20 + width: root.height * 0.20 anchors.top: parent.top anchors.topMargin: 5 anchors.right: parent.right