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
05e7b421
Commit
05e7b421
authored
Mar 31, 2009
by
Max-Wilhelm Bruker
Browse files
foo
parent
e3039642
Changes
3
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carditem.cpp
View file @
05e7b421
...
@@ -31,7 +31,6 @@ QRectF CardItem::boundingRect() const
...
@@ -31,7 +31,6 @@ QRectF CardItem::boundingRect() const
void
CardItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
void
CardItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
{
Q_UNUSED
(
option
);
Q_UNUSED
(
widget
);
Q_UNUSED
(
widget
);
painter
->
save
();
painter
->
save
();
...
...
cockatrice/src/gameview.cpp
View file @
05e7b421
...
@@ -4,9 +4,10 @@ GameView::GameView(QGraphicsScene *scene, QWidget *parent)
...
@@ -4,9 +4,10 @@ GameView::GameView(QGraphicsScene *scene, QWidget *parent)
:
QGraphicsView
(
scene
,
parent
)
:
QGraphicsView
(
scene
,
parent
)
{
{
setBackgroundBrush
(
QBrush
(
QColor
(
0
,
0
,
0
)));
setBackgroundBrush
(
QBrush
(
QColor
(
0
,
0
,
0
)));
setRenderHints
(
QPainter
::
Antialiasing
/* | QPainter::SmoothPixmapTransform*/
);
setRenderHints
(
QPainter
::
TextAntialiasing
|
QPainter
::
Antialiasing
/* | QPainter::SmoothPixmapTransform*/
);
// setOptimizationFlags(/*DontClipPainter | */DontSavePainterState);
// setOptimizationFlags(/*DontClipPainter | */DontSavePainterState);
setDragMode
(
RubberBandDrag
);
setDragMode
(
RubberBandDrag
);
// setViewportUpdateMode(FullViewportUpdate);
}
}
void
GameView
::
scaleToScene
()
void
GameView
::
scaleToScene
()
...
...
cockatrice/src/window.cpp
View file @
05e7b421
...
@@ -203,7 +203,6 @@ MainWindow::MainWindow(QWidget *parent)
...
@@ -203,7 +203,6 @@ MainWindow::MainWindow(QWidget *parent)
view
=
new
GameView
(
scene
);
view
=
new
GameView
(
scene
);
// view->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
// view->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
// view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
zoneLayout
=
new
ZoneViewLayout
(
db
);
zoneLayout
=
new
ZoneViewLayout
(
db
);
zoneLayout
->
setPos
(
912
,
0
);
zoneLayout
->
setPos
(
912
,
0
);
...
...
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