This commit is contained in:
Max-Wilhelm Bruker 2010-03-09 17:53:34 +01:00
parent 7bf3ff1ff4
commit cb74c734f2
4 changed files with 3 additions and 22 deletions

View file

@ -7,6 +7,7 @@ GameView::GameView(QGraphicsScene *scene, QWidget *parent)
setBackgroundBrush(QBrush(QColor(0, 0, 0)));
setRenderHints(QPainter::TextAntialiasing | QPainter::Antialiasing/* | QPainter::SmoothPixmapTransform*/);
setDragMode(RubberBandDrag);
setFocusPolicy(Qt::NoFocus);
setViewportUpdateMode(BoundingRectViewportUpdate);
connect(scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(updateSceneRect(const QRectF &)));