Files
-
- 1 added
- 6 edited
-
cuteMeter.pro (modified) (2 diffs)
-
qml/Main.qml (modified) (5 diffs)
-
qml/components/AboutButton.qml (modified) (2 diffs)
-
qml/components/AboutText.qml (modified) (1 diff)
-
qml/components/HLine.qml (modified) (2 diffs)
-
qml/components/PushButton.qml (added)
-
qtc_packaging/debian_harmattan/changelog (modified) (1 diff)
- Legend:
- Unmodified
- Added
- Removed
-
cuteMeter.pro
r1 r3 59 59 qml/components/AboutText.qml \ 60 60 qml/components/AboutButton.qml \ 61 cuteMeter.desktop 61 cuteMeter.desktop \ 62 qml/components/VLine.qml \ 63 qml/components/PushButton.qml \ 64 qml/components/Point.qml \ 65 qml/components/HLine.qml \ 66 qml/components/Data.qml \ 67 qml/components/AboutText.qml \ 68 qml/components/AboutButton.qml 62 69 63 70 … … 76 83 77 84 85 -
qml/Main.qml
r1 r3 9 9 10 10 property int size: Math.abs(p1.pix - p2.pix) 11 property int mem: 0 11 12 12 13 // connection … … 40 41 } 41 42 43 // ----------------------------------- 44 // mouse handler 42 45 MouseArea { 43 46 property bool move1: false … … 68 71 p1.pix = Math.min(parent.height - 4, Math.max(4, p1.pix)); 69 72 p2.pix = Math.min(parent.height - 4, Math.max(4, p2.pix)); 70 } 71 73 } 72 74 } 75 76 77 // ----------------------------------- 78 // memory 79 PushButton { 80 id: pb0 81 anchors.right: parent.right 82 anchors.top: parent.top 83 anchors.margins: 22 84 text: "MC" 85 onClicked: main_.mem = 0 86 } 87 88 PushButton { 89 id: pb1 90 anchors.right: parent.right 91 anchors.top: pb0.bottom 92 anchors.margins: 22 93 text : "M+" 94 onClicked: main_.mem += main_.size 95 } 96 97 98 PushButton { 99 id: pb2 100 anchors.right: parent.right 101 anchors.top: pb1.bottom 102 anchors.margins: 22 103 text : "M-" 104 onClicked: main_.mem -= main_.size 105 } 106 107 Data { 108 anchors.right: pb1.right 109 anchors.verticalCenter: pb1.verticalCenter 110 text: "" + Math.round(measure.mmPerPixel * main_.mem) + " mm, " + (measure.mmPerPixel * main_.mem / 25.4).toFixed(2) + "\""; 111 visible: main_.mem !== 0 112 } 113 114 // ----------------------------------- 115 // about 73 116 AboutText { 74 visible: button.active 75 anchors.margins: 8 117 visible: ab.active 76 118 anchors.left: parent.left 77 119 anchors.right: parent.right … … 81 123 82 124 AboutButton { 83 id: button125 id: ab 84 126 anchors.margins: 22 85 127 anchors.right: parent.right 86 128 anchors.bottom: parent.bottom 87 129 } 88 130 131 132 // ----------------------------------- 133 // beta release warning 89 134 Text { 90 135 width: parent.width 91 y: 20 136 anchors.bottom: ab.top 137 anchors.margins: 22 * 2 92 138 horizontalAlignment: Text.AlignHCenter 93 139 text: "For testers only. Please do not distribute!" … … 95 141 color: "yellow" 96 142 } 97 143 144 // ----------------------------------- 145 // init 98 146 Component.onCompleted: 99 147 { 100 p1.pix = 100;101 p2.pix = 200;148 p1.pix = 250; 149 p2.pix = 400; 102 150 } 103 151 } -
qml/components/AboutButton.qml
r1 r3 8 8 9 9 width: parent.width / 4 10 height: 3810 height: 44 11 11 color: active ? "white" : "black" 12 12 border.color: "white" … … 16 16 anchors.centerIn: parent 17 17 color: button_.active ? "black" : "white" 18 font.pixelSize: parent.height * 0. 818 font.pixelSize: parent.height * 0.7 19 19 text: button_.active ? "Back" : "About" 20 20 } -
qml/components/AboutText.qml
r1 r3 21 21 textFormat: Text.RichText 22 22 wrapMode: Text.WordWrap 23 color: " blue"24 font.pixelSize: 2 423 color: "white" 24 font.pixelSize: 20 25 25 onLinkActivated: Qt.openUrlExternally(link) 26 26 text : 27 27 "<p><br>" + 28 28 "<h3>cuteMeter</h3>" + 29 "<p>Version 0. 0.1" +29 "<p>Version 0.1.0" + 30 30 "<p>Developed by <a href=\"http://blog.tube42.se\"> Tube42</a>, " + 31 "<a href=\"mail:av@tube42.se\"> av@tube42.se</a>" + 32 "<p>With this app, you don't need to carry a ruler in your pocket and confuse the ladies all the time."; 31 "<a href=\"mail:av@tube42.se\"> av@tube42.se</a>" + 32 "<p><br>With this app, you don't need to carry a big ruler in your pocket all the time, "+ 33 "which not only destorys your pants, it may also confuse the ladies." + 34 "<p><br>This app was developed in QML for the MeeGo platform. The source code is available from "+ 35 "<a href=\"http://projects.developer.nokia.com/cutemeter\">Nokia Developers Forum</a> under the GPLv2 license" 36 ; 33 37 } 34 38 clip: true -
qml/components/HLine.qml
r1 r3 6 6 id: point_ 7 7 property int pix 8 property int size: 48 property int size: 6 9 9 10 10 width: parent.width … … 16 16 color: "red" 17 17 width: parent.width 18 y: point_.size 19 height: 118 y: point_.size -1 19 height: 3 20 20 } 21 21 } -
qtc_packaging/debian_harmattan/changelog
r1 r3 1 cutemeter (0.1.0) unstable; urgency=low 2 * <Add change description here> 3 4 -- unknown <> Mon, 16 Jan 2012 19:03:02 +0100 5 6 1 7 cutemeter (0.0.1) unstable; urgency=low 2 8

