Added a signal handler
authorVenu <venugopal.shivashankar@digia.com>
Wed, 13 Aug 2014 12:35:20 +0000 (14:35 +0200)
committerVenugopal Shivashankar <venugopal.shivashankar@digia.com>
Thu, 14 Aug 2014 08:17:49 +0000 (10:17 +0200)
Without the onHeightChanged signal handler the transition
of the NumberPad from left to right is incomplete especially
on a mobile device where the window is scaled to fit the view.
So the NumberPad ends up hidden behind the Display.

Task-number: QTBUG-36086
Change-Id: Iab021c9f2572a4ac83bc393dddc24ddd31849cb4
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
examples/quick/demos/calqlatr/calqlatr.qml

index 0a092c2..5f0ebe8 100644 (file)
@@ -51,6 +51,7 @@ Rectangle {
     color: "#272822"
 
     onWidthChanged: controller.reload()
+    onHeightChanged: controller.reload()
 
     function operatorPressed(operator) { CalcEngine.operatorPressed(operator) }
     function digitPressed(digit) { CalcEngine.digitPressed(digit) }