summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-16 06:20:54 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:49:13 +0100
commitb8ea949f768e47624d938d73a5de58b230d59f71 (patch)
treea2de97883658c83a69979dbc26eab6d925c1ccae /gui
parentd4fbad4d2931aa45308270eb995567314390e334 (diff)
gui/mapping-dialog: show more ruler lines
Diffstat (limited to 'gui')
-rw-r--r--gui/lang/nl_NL.ts4
-rw-r--r--gui/lang/ru_RU.ts4
-rw-r--r--gui/lang/stub.ts4
-rw-r--r--gui/lang/zh_CN.ts4
-rw-r--r--gui/mapping-dialog.cpp6
5 files changed, 19 insertions, 3 deletions
diff --git a/gui/lang/nl_NL.ts b/gui/lang/nl_NL.ts
index 64ee0621..60b84189 100644
--- a/gui/lang/nl_NL.ts
+++ b/gui/lang/nl_NL.ts
@@ -121,6 +121,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>%1°</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>%1 cm</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>options_dialog</name>
diff --git a/gui/lang/ru_RU.ts b/gui/lang/ru_RU.ts
index 8e3ca4a7..d40b4775 100644
--- a/gui/lang/ru_RU.ts
+++ b/gui/lang/ru_RU.ts
@@ -121,6 +121,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>%1°</source>
<translation></translation>
</message>
+ <message>
+ <source>%1 cm</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>options_dialog</name>
diff --git a/gui/lang/stub.ts b/gui/lang/stub.ts
index 932f4348..b383a0d8 100644
--- a/gui/lang/stub.ts
+++ b/gui/lang/stub.ts
@@ -121,6 +121,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>%1°</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>%1 cm</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>options_dialog</name>
diff --git a/gui/lang/zh_CN.ts b/gui/lang/zh_CN.ts
index 45414302..fa2d512c 100644
--- a/gui/lang/zh_CN.ts
+++ b/gui/lang/zh_CN.ts
@@ -122,6 +122,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>%1°</source>
<translation></translation>
</message>
+ <message>
+ <source>%1 cm</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>options_dialog</name>
diff --git a/gui/mapping-dialog.cpp b/gui/mapping-dialog.cpp
index 0bfb5068..8a5147cf 100644
--- a/gui/mapping-dialog.cpp
+++ b/gui/mapping-dialog.cpp
@@ -130,9 +130,9 @@ void mapping_dialog::load()
auto update_xstep = [&qfc](int clamp_x) {
int value;
- if (clamp_x <= c::r20)
+ if (clamp_x <= c::r30)
value = 1;
- else if (clamp_x <= c::r30)
+ else if (clamp_x <= c::r45)
value = 5;
else
value = 10;
@@ -146,7 +146,7 @@ void mapping_dialog::load()
{
default:
case c::o_r180:
- value = 15; break;
+ value = 20; break;
case c::o_r90:
value = 10; break;
case c::o_t75: