Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LETG
Rename bands
Commits
3f5aba9b
Commit
3f5aba9b
authored
Sep 14, 2021
by
PIERSON Julie
Browse files
band name input by user is ok
parent
6d973c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
BandTableWidget.py
BandTableWidget.py
+5
-14
No files found.
BandTableWidget.py
View file @
3f5aba9b
...
...
@@ -129,20 +129,11 @@ class BandTableWidget(BASE, WIDGET):
if
not
item
:
return
if
column
==
0
:
d
,
ok
=
QInputDialog
.
getDouble
(
None
,
self
.
tr
(
'Enter lower elevation class bound'
),
self
.
tr
(
'Elevation'
),
float
(
item
.
text
(
0
)),
decimals
=
2
)
if
ok
:
item
.
setText
(
0
,
str
(
d
))
elif
column
==
1
:
d
,
ok
=
QInputDialog
.
getDouble
(
None
,
self
.
tr
(
'Enter upper elevation class bound'
),
self
.
tr
(
'Elevation'
),
float
(
item
.
text
(
1
)),
decimals
=
2
)
if
column
==
1
:
d
,
ok
=
QInputDialog
.
getText
(
None
,
self
.
tr
(
'Band name'
),
self
.
tr
(
'Enter new band name'
)
)
if
ok
:
item
.
setText
(
1
,
str
(
d
))
...
...
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