From 21f7ce3133f9084b2fd4ea09244fb22d5265f128 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 21 Aug 2021 18:13:19 +0200 Subject: [PATCH] Changing zoom to doubles. --- .../qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml | 4 ++-- .../qml/eu/ad5001/LogarithmPlotter/Settings.qml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml index 4ee891c..3cef6e1 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml @@ -31,8 +31,8 @@ Canvas { property double xmin: 0 property double ymax: 0 - property int xzoom: 10 - property int yzoom: 10 + property double xzoom: 10 + property double yzoom: 10 property string xaxisstep: "4" property string yaxisstep: "4" property string xlabel: "" diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml index 8c81bde..9be1b5c 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Settings.qml @@ -27,8 +27,8 @@ ScrollView { property int settingWidth: settings.width - ScrollBar.vertical.width - property int xzoom: 100 - property int yzoom: 10 + property double xzoom: 100 + property double yzoom: 10 property double xmin: 5/10 property double ymax: 25 property string xaxisstep: "4" @@ -68,7 +68,7 @@ ScrollView { TextSetting { id: zoomX height: 30 - isInt: true + isDouble: true label: "X Zoom" min: 1 icon: "icons/settings/xzoom.svg" @@ -83,7 +83,7 @@ ScrollView { TextSetting { id: zoomY height: 30 - isInt: true + isDouble: true label: "Y Zoom" icon: "icons/settings/yzoom.svg" width: settings.settingWidth