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
e3c1ad2d
Commit
e3c1ad2d
authored
Nov 26, 2011
by
Max-Wilhelm Bruker
Browse files
Qt 4.6 compile fix
parent
cef4fb11
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/zoneviewwidget.cpp
View file @
e3c1ad2d
...
...
@@ -60,7 +60,6 @@ ZoneViewWidget::ZoneViewWidget(Player *_player, CardZone *_origZone, int numberC
setAttribute
(
Qt
::
WA_DeleteOnClose
);
setZValue
(
2000000006
);
setFlag
(
ItemIgnoresTransformations
);
setAutoFillBackground
(
true
);
QGraphicsLinearLayout
*
hbox
=
new
QGraphicsLinearLayout
(
Qt
::
Horizontal
);
titleLabel
=
new
TitleLabel
;
...
...
@@ -133,6 +132,12 @@ void ZoneViewWidget::retranslateUi()
shuffleCheckBox
->
setText
(
tr
(
"shuffle when closing"
));
}
void
ZoneViewWidget
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
painter
->
fillRect
(
boundingRect
(),
palette
().
color
(
QPalette
::
Window
));
QGraphicsWidget
::
paint
(
painter
,
option
,
widget
);
}
void
ZoneViewWidget
::
moveWidget
(
QPointF
scenePos
)
{
setPos
(
scenePos
);
...
...
cockatrice/src/zoneviewwidget.h
View file @
e3c1ad2d
...
...
@@ -56,6 +56,7 @@ public:
void
retranslateUi
();
protected:
void
closeEvent
(
QCloseEvent
*
event
);
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
);
};
#endif
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