diff options
author | Florent Revest <revestflo@gmail.com> | 2017-07-31 22:26:05 +0100 |
---|---|---|
committer | Florent Revest <revestflo@gmail.com> | 2017-07-31 22:26:05 +0100 |
commit | 8978a24c87d73bde28086de6a0419b8419586f1f (patch) | |
tree | 02d88410d5a0172b1aa77517be38d01dee104e2e | |
parent | 941e702b9d244a9f469bbdef531dffa1c6f3eac4 (diff) |
Normalize dimensions with Dims.*
Diffstat (limited to '')
-rw-r--r-- | main.qml | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -import QtQuick 2.5 +import QtQuick 2.9 import org.asteroid.controls 1.0 import org.nemomobile.configuration 1.0 @@ -81,7 +81,7 @@ Application { textFormat: Text.RichText anchors.centerIn: parent text: toTimeString(elapsed.value) - font.pixelSize: parent.height*0.25 + font.pixelSize: Dims.h(25) color: "#FFFFFF" horizontalAlignment: Text.AlignHCenter @@ -97,7 +97,6 @@ Application { MouseArea { anchors.fill: parent onClicked: { - console.log("from:" + mainPage.state + " " + elapsed.value + " " + running.value + " " + previousTime.value) switch(mainPage.state) { case "zero": case "paused": @@ -109,7 +108,6 @@ Application { running.value = false break; } - console.log("from:" + mainPage.state + " " + elapsed.value + " " + running.value + " " + previousTime.value) } } @@ -124,7 +122,7 @@ Application { anchors { horizontalCenter: parent.horizontalCenter - topMargin: Units.dp(8) + topMargin: Units.iconButtonMargin top: parent.top } |