Port to Qt5
[profile/ivi/hfdialer.git] / qml / DialNumPad.qml
index d91a28e..2d74142 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  */
 
-import Qt 4.7
+import QtQuick 2.0
 
 Item
 {
@@ -30,25 +30,6 @@ Item
         }
     }
 
-    function show()
-    {
-        height = 72 * 5 + 4;
-        numPadShown = true;
-    }
-
-    function hide()
-    {
-        height = 72;
-        numPadShown = false;
-    }
-
-    function toggle()
-    {
-        if(numPadShown == true) {hide()} else {show()}
-    }
-
-    Behavior on height {PropertyAnimation {duration: 500; easing.type: Easing.OutBounce}}
-
     Image
     {
         id: numpad
@@ -254,8 +235,7 @@ Item
                 Image
                 {
                     id: closeButton
-                    source: "/usr/share/hfdialer/images/ivi_btn-close2.png"
-                    //anchors { left: parent.left; top: parent.top;}
+                    source: "/usr/share/hfdialer/images/ivi_btn-close.png"
                     height: parent.height   
                     width: (parent.width / 7) - 5
 
@@ -265,6 +245,7 @@ Item
 
                     onClicked: {
                         console.log("CLOSE BUTTON CLICKED")
+
                         Qt.quit()
                         }
                     }