Changing zoom to doubles.

This commit is contained in:
Adsooi 2021-08-21 18:13:19 +02:00
parent c15da47743
commit 21f7ce3133
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 6 additions and 6 deletions

View file

@ -31,8 +31,8 @@ Canvas {
property double xmin: 0 property double xmin: 0
property double ymax: 0 property double ymax: 0
property int xzoom: 10 property double xzoom: 10
property int yzoom: 10 property double yzoom: 10
property string xaxisstep: "4" property string xaxisstep: "4"
property string yaxisstep: "4" property string yaxisstep: "4"
property string xlabel: "" property string xlabel: ""

View file

@ -27,8 +27,8 @@ ScrollView {
property int settingWidth: settings.width - ScrollBar.vertical.width property int settingWidth: settings.width - ScrollBar.vertical.width
property int xzoom: 100 property double xzoom: 100
property int yzoom: 10 property double yzoom: 10
property double xmin: 5/10 property double xmin: 5/10
property double ymax: 25 property double ymax: 25
property string xaxisstep: "4" property string xaxisstep: "4"
@ -68,7 +68,7 @@ ScrollView {
TextSetting { TextSetting {
id: zoomX id: zoomX
height: 30 height: 30
isInt: true isDouble: true
label: "X Zoom" label: "X Zoom"
min: 1 min: 1
icon: "icons/settings/xzoom.svg" icon: "icons/settings/xzoom.svg"
@ -83,7 +83,7 @@ ScrollView {
TextSetting { TextSetting {
id: zoomY id: zoomY
height: 30 height: 30
isInt: true isDouble: true
label: "Y Zoom" label: "Y Zoom"
icon: "icons/settings/yzoom.svg" icon: "icons/settings/yzoom.svg"
width: settings.settingWidth width: settings.settingWidth