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
bf2efb37
Commit
bf2efb37
authored
Jul 09, 2020
by
Stefan Gerlach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[locale] Use locale in spin boxes of cartesian plot box
parent
4098be08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/kdefrontend/dockwidgets/CartesianPlotDock.cpp
src/kdefrontend/dockwidgets/CartesianPlotDock.cpp
+10
-6
No files found.
src/kdefrontend/dockwidgets/CartesianPlotDock.cpp
View file @
bf2efb37
...
...
@@ -285,6 +285,12 @@ void CartesianPlotDock::setPlots(QList<CartesianPlot*> list) {
labelWidget
->
setLabels
(
labels
);
SET_NUMBER_LOCALE
ui
.
sbLeft
->
setLocale
(
numberLocale
);
ui
.
sbTop
->
setLocale
(
numberLocale
);
ui
.
sbWidth
->
setLocale
(
numberLocale
);
ui
.
sbHeight
->
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
)
{
ui
.
lName
->
setEnabled
(
true
);
...
...
@@ -313,8 +319,6 @@ void CartesianPlotDock::setPlots(QList<CartesianPlot*> list) {
this
->
load
();
//update active widgets
m_themeHandler
->
setCurrentTheme
(
m_plot
->
theme
());
//Deactivate the geometry related widgets, if the worksheet layout is active.
...
...
@@ -516,10 +520,10 @@ void CartesianPlotDock::geometryChanged() {
if
(
m_initializing
)
return
;
float
x
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbLeft
->
value
(),
m_worksheetUnit
);
float
y
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbTop
->
value
(),
m_worksheetUnit
);
float
w
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbWidth
->
value
(),
m_worksheetUnit
);
float
h
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbHeight
->
value
(),
m_worksheetUnit
);
double
x
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbLeft
->
value
(),
m_worksheetUnit
);
double
y
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbTop
->
value
(),
m_worksheetUnit
);
double
w
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbWidth
->
value
(),
m_worksheetUnit
);
double
h
=
Worksheet
::
convertToSceneUnits
(
ui
.
sbHeight
->
value
(),
m_worksheetUnit
);
QRectF
rect
(
x
,
y
,
w
,
h
);
m_plot
->
setRect
(
rect
);
...
...
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