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
Marco Bubke
flatpak-qt-creator
Commits
5037c78f
Commit
5037c78f
authored
Dec 02, 2009
by
Daniel Molkentin
Browse files
Show errors in overlay icon on Windows 7.
Complements
275146af
Task-Number: QTCREATORBUG-386
parent
a8dbba5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/progressmanager/progressmanager_win.cpp
View file @
5037c78f
...
...
@@ -29,6 +29,11 @@
#include <QtCore/QVariant>
#include <QtGui/QMainWindow>
#include <QtGui/QFont>
#include <QtGui/QFontMetrics>
#include <QtGui/QPixmap>
#include <QtGui/QPainter>
#include <QtGui/QLabel>
#include <coreplugin/icore.h>
...
...
@@ -76,7 +81,22 @@ void Core::Internal::ProgressManagerPrivate::cleanup()
void
Core
::
Internal
::
ProgressManagerPrivate
::
setApplicationLabel
(
const
QString
&
text
)
{
Q_UNUSED
(
text
)
if
(
!
pITask
)
return
;
WId
winId
=
Core
::
ICore
::
instance
()
->
mainWindow
()
->
winId
();
if
(
text
.
isNull
())
{
pITask
->
SetOverlayIcon
(
winId
,
NULL
,
NULL
);
}
else
{
QPixmap
pix
=
QPixmap
(
":/projectexplorer/images/compile_error.png"
);
QPainter
p
(
&
pix
);
p
.
setPen
(
Qt
::
white
);
QFont
font
=
p
.
font
();
font
.
setPointSize
(
font
.
pointSize
()
-
2
);
p
.
setFont
(
font
);
p
.
drawText
(
QRect
(
QPoint
(
0
,
0
),
pix
.
size
()),
Qt
::
AlignHCenter
|
Qt
::
AlignCenter
,
text
);
pITask
->
SetOverlayIcon
(
winId
,
pix
.
toWinHICON
(),
text
.
utf16
());
}
}
void
Core
::
Internal
::
ProgressManagerPrivate
::
setApplicationProgressRange
(
int
min
,
int
max
)
...
...
Write
Preview
Supports
Markdown
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