Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
48b15203
Commit
48b15203
authored
Feb 24, 2022
by
HinGwenWoong
Browse files
Fixed BUG: the image-slider won't change value when process fit window
parent
9f69e975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+1
-0
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
48b15203
...
@@ -1466,6 +1466,7 @@ class MainWindow(QMainWindow):
...
@@ -1466,6 +1466,7 @@ class MainWindow(QMainWindow):
def
adjustScale
(
self
,
initial
=
False
):
def
adjustScale
(
self
,
initial
=
False
):
value
=
self
.
scalers
[
self
.
FIT_WINDOW
if
initial
else
self
.
zoomMode
]()
value
=
self
.
scalers
[
self
.
FIT_WINDOW
if
initial
else
self
.
zoomMode
]()
self
.
zoomWidget
.
setValue
(
int
(
100
*
value
))
self
.
zoomWidget
.
setValue
(
int
(
100
*
value
))
self
.
imageSlider
.
setValue
(
self
.
zoomWidget
.
value
())
# set zoom slider value
def
scaleFitWindow
(
self
):
def
scaleFitWindow
(
self
):
"""Figure out the size of the pixmap in order to fit the main widget."""
"""Figure out the size of the pixmap in order to fit the main widget."""
...
...
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