Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
d9e98f34
Commit
d9e98f34
authored
Jun 05, 2009
by
Jens Bache-Wiig
Browse files
Fixes: Fix red color on error for progressbars
parent
ab487246
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/progressmanager/progresspie.cpp
View file @
d9e98f34
...
...
@@ -149,9 +149,8 @@ void ProgressBar::paintEvent(QPaintEvent *)
QRect
inner
=
rect
.
adjusted
(
2
,
2
,
-
1
,
-
1
);
inner
.
adjust
(
0
,
0
,
qRound
((
percent
-
1
)
*
inner
.
width
()),
0
);
if
(
m_error
)
{
// TODO this is not fancy enough
QColor
red
(
255
,
0
,
0
,
180
);
p
.
setBrush
(
red
);
QColor
red
(
255
,
60
,
0
,
210
);
c
=
red
;
// avoid too small red bar
if
(
inner
.
width
()
<
10
)
inner
.
adjust
(
0
,
0
,
10
-
inner
.
width
(),
0
);
...
...
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