Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
31520970
Commit
31520970
authored
Sep 13, 2010
by
Max-Wilhelm Bruker
Browse files
Qt 4.5 compile fix
parent
e15806db
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/handcounter.cpp
View file @
31520970
...
@@ -30,7 +30,11 @@ void HandCounter::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*op
...
@@ -30,7 +30,11 @@ void HandCounter::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*op
painter
->
save
();
painter
->
save
();
QSize
translatedSize
=
painter
->
combinedTransform
().
mapRect
(
boundingRect
()).
size
().
toSize
();
QSize
translatedSize
=
painter
->
combinedTransform
().
mapRect
(
boundingRect
()).
size
().
toSize
();
QPixmap
cachedPixmap
;
QPixmap
cachedPixmap
;
#if QT_VERSION >= 0x040600
if
(
!
QPixmapCache
::
find
(
"handCounter"
+
QString
::
number
(
translatedSize
.
width
()),
&
cachedPixmap
))
{
if
(
!
QPixmapCache
::
find
(
"handCounter"
+
QString
::
number
(
translatedSize
.
width
()),
&
cachedPixmap
))
{
#else
if
(
!
QPixmapCache
::
find
(
"handCounter"
+
QString
::
number
(
translatedSize
.
width
()),
cachedPixmap
))
{
#endif
QSvgRenderer
svg
(
QString
(
":/resources/hand.svg"
));
QSvgRenderer
svg
(
QString
(
":/resources/hand.svg"
));
cachedPixmap
=
QPixmap
(
translatedSize
);
cachedPixmap
=
QPixmap
(
translatedSize
);
cachedPixmap
.
fill
(
Qt
::
transparent
);
cachedPixmap
.
fill
(
Qt
::
transparent
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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