From 60a910539e0a9b4bd7c62146c72c18a9769d11b2 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Fri, 3 Jul 2015 17:19:19 +0200 Subject: [PATCH] Support landscape mode --- qml/pages/MainPage.qml | 14 ++++++++------ rpm/harbour-papocchio.changes | 3 +++ rpm/harbour-papocchio.spec | 2 +- rpm/harbour-papocchio.yaml | 2 +- translations/harbour-papocchio.ts | 6 +++--- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index bcff413..bad35c8 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Andrea Scarpino + Copyright (C) 2014-2015 Andrea Scarpino All rights reserved. This program is free software: you can redistribute it and/or modify @@ -26,25 +26,25 @@ Page { readonly property color defaultStrokeColor: Qt.rgba(0, 0, 0, 1) readonly property color defaultFillColor: Qt.rgba(1, 1, 1, 1) + allowedOrientations: Orientation.All + Column { anchors.fill: parent Row { id: menu - spacing: 10 + spacing: Theme.paddingSmall width: parent.width // Workaround: we don't want the Slider animation to resize this! height: Theme.itemSizeMedium IconTextSwitch { + id: edit checked: true icon.source: "image://theme/icon-s-edit" anchors.verticalCenter: parent.verticalCenter width: 120 - // Don't waste space - rightMargin: 0 - // default value for the rubber property real prevLineWidth: defaultRubberSize; @@ -71,7 +71,7 @@ Page { stepSize: 1 value: defaultStrokeSize valueText: value - width: 240 + width: parent.width - edit.width - save.width - clearBtn.width anchors.verticalCenter: parent.verticalCenter @@ -85,6 +85,7 @@ Page { } IconButton { + id: save icon.source: "image://theme/icon-m-image" anchors.verticalCenter: parent.verticalCenter @@ -105,6 +106,7 @@ Page { } IconButton { + id: clearBtn icon.source: "image://theme/icon-m-clear" anchors.verticalCenter: parent.verticalCenter diff --git a/rpm/harbour-papocchio.changes b/rpm/harbour-papocchio.changes index bab752b..3bfe7c6 100644 --- a/rpm/harbour-papocchio.changes +++ b/rpm/harbour-papocchio.changes @@ -1,3 +1,6 @@ +* Fri Jul 03 2015 Andrea Scarpino 1.2-1 +- Landscape support. + * Sat Nov 29 2014 Andrea Scarpino 1.1-1 - Implemented 'Save' function. diff --git a/rpm/harbour-papocchio.spec b/rpm/harbour-papocchio.spec index 5d1323a..c8cbd3d 100644 --- a/rpm/harbour-papocchio.spec +++ b/rpm/harbour-papocchio.spec @@ -13,7 +13,7 @@ Name: harbour-papocchio %{!?qtc_make:%define qtc_make make} %{?qtc_builddir:%define _builddir %qtc_builddir} Summary: Paint using your finger -Version: 1.1 +Version: 1.2 Release: 1 Group: Qt/Qt License: GPLv3 diff --git a/rpm/harbour-papocchio.yaml b/rpm/harbour-papocchio.yaml index f2211a7..2904b97 100644 --- a/rpm/harbour-papocchio.yaml +++ b/rpm/harbour-papocchio.yaml @@ -1,6 +1,6 @@ Name: harbour-papocchio Summary: Paint using your finger -Version: 1.1 +Version: 1.2 Release: 1 # The contents of the Group field should be one of the groups listed here: # http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS diff --git a/translations/harbour-papocchio.ts b/translations/harbour-papocchio.ts index 268f2c0..7b9a42a 100644 --- a/translations/harbour-papocchio.ts +++ b/translations/harbour-papocchio.ts @@ -4,7 +4,7 @@ CoverPage - + Draw! @@ -12,12 +12,12 @@ MainPage - + Saving the canvas... - + Clearing the canvas...