foo
This commit is contained in:
parent
e3039642ab
commit
05e7b42193
3 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue