Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
bb34de36
Commit
bb34de36
authored
Jun 19, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't draw splash screen progress bar when no progess
parent
8cbe8d84
Pipeline
#24396
passed with stage
in 15 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/dialogs/splash.cpp
src/dialogs/splash.cpp
+6
-6
No files found.
src/dialogs/splash.cpp
View file @
bb34de36
...
...
@@ -56,11 +56,11 @@ void Splash::drawContents(QPainter *painter)
{
QSplashScreen
::
drawContents
(
painter
);
// Set style for
progress
bar...
m_pbStyle
.
progress
=
m_progress
;
//
m_pbStyle.
rect = QRect(4, height() - 24, width() / 2, 20); // Where is it.
// Draw it...
style
()
->
drawControl
(
QStyle
::
CE_ProgressBar
,
&
m_pbStyle
,
painter
,
this
);
if
(
m_
progress
>
0
)
{
// Set style for progressbar and draw it
m_pbStyle
.
progress
=
m_progress
;
// Draw it...
style
()
->
drawControl
(
QStyle
::
CE_ProgressBar
,
&
m_pbStyle
,
painter
,
this
);
}
}
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