mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-05 20:39:59 -08:00
foo
This commit is contained in:
@@ -31,7 +31,6 @@ QRectF CardItem::boundingRect() const
|
||||
|
||||
void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
{
|
||||
Q_UNUSED(option);
|
||||
Q_UNUSED(widget);
|
||||
|
||||
painter->save();
|
||||
|
||||
@@ -4,9 +4,10 @@ GameView::GameView(QGraphicsScene *scene, QWidget *parent)
|
||||
: QGraphicsView(scene, parent)
|
||||
{
|
||||
setBackgroundBrush(QBrush(QColor(0, 0, 0)));
|
||||
setRenderHints(QPainter::Antialiasing/* | QPainter::SmoothPixmapTransform*/);
|
||||
setRenderHints(QPainter::TextAntialiasing | QPainter::Antialiasing/* | QPainter::SmoothPixmapTransform*/);
|
||||
// setOptimizationFlags(/*DontClipPainter | */DontSavePainterState);
|
||||
setDragMode(RubberBandDrag);
|
||||
// setViewportUpdateMode(FullViewportUpdate);
|
||||
}
|
||||
|
||||
void GameView::scaleToScene()
|
||||
|
||||
@@ -203,7 +203,6 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
view = new GameView(scene);
|
||||
|
||||
// view->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
|
||||
// view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
|
||||
|
||||
zoneLayout = new ZoneViewLayout(db);
|
||||
zoneLayout->setPos(912, 0);
|
||||
|
||||
Reference in New Issue
Block a user