Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
LabPlot
Commits
5384d04f
Commit
5384d04f
authored
Jul 10, 2020
by
Stefan Gerlach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[locale] use number locale in more double spin boxes
parent
bf2efb37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/kdefrontend/dockwidgets/AxisDock.cpp
src/kdefrontend/dockwidgets/AxisDock.cpp
+12
-0
src/kdefrontend/dockwidgets/CartesianPlotDock.cpp
src/kdefrontend/dockwidgets/CartesianPlotDock.cpp
+6
-0
No files found.
src/kdefrontend/dockwidgets/AxisDock.cpp
View file @
5384d04f
...
...
@@ -423,6 +423,18 @@ void AxisDock::setAxes(QList<Axis*> list) {
labelWidget
->
setAxes
(
list
);
SET_NUMBER_LOCALE
ui
.
sbLineWidth
->
setLocale
(
numberLocale
);
ui
.
sbMajorTicksSpacingNumeric
->
setLocale
(
numberLocale
);
ui
.
sbMajorTicksWidth
->
setLocale
(
numberLocale
);
ui
.
sbMajorTicksLength
->
setLocale
(
numberLocale
);
ui
.
sbMinorTicksSpacingNumeric
->
setLocale
(
numberLocale
);
ui
.
sbMinorTicksWidth
->
setLocale
(
numberLocale
);
ui
.
sbMinorTicksLength
->
setLocale
(
numberLocale
);
ui
.
sbLabelsOffset
->
setLocale
(
numberLocale
);
ui
.
sbMajorGridWidth
->
setLocale
(
numberLocale
);
ui
.
sbMinorGridWidth
->
setLocale
(
numberLocale
);
//if there are more then one axis in the list, disable the tab "general"
if
(
list
.
size
()
==
1
)
{
ui
.
lName
->
setEnabled
(
true
);
...
...
src/kdefrontend/dockwidgets/CartesianPlotDock.cpp
View file @
5384d04f
...
...
@@ -290,6 +290,12 @@ void CartesianPlotDock::setPlots(QList<CartesianPlot*> list) {
ui
.
sbTop
->
setLocale
(
numberLocale
);
ui
.
sbWidth
->
setLocale
(
numberLocale
);
ui
.
sbHeight
->
setLocale
(
numberLocale
);
ui
.
sbBorderWidth
->
setLocale
(
numberLocale
);
ui
.
sbBorderCornerRadius
->
setLocale
(
numberLocale
);
ui
.
sbPaddingHorizontal
->
setLocale
(
numberLocale
);
ui
.
sbPaddingVertical
->
setLocale
(
numberLocale
);
ui
.
sbPaddingRight
->
setLocale
(
numberLocale
);
ui
.
sbPaddingBottom
->
setLocale
(
numberLocale
);
//if there is more then one plot in the list, disable the name and comment fields in the tab "general"
if
(
list
.
size
()
==
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment