mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
game view should not get keyboard focus
This commit is contained in:
parent
86cd3ec5be
commit
6ba2e98315
2 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ GameView::GameView(QGraphicsScene *scene, QWidget *parent)
|
|||
setRenderHints(QPainter::TextAntialiasing | QPainter::Antialiasing/* | QPainter::SmoothPixmapTransform*/);
|
||||
setDragMode(RubberBandDrag);
|
||||
setViewportUpdateMode(BoundingRectViewportUpdate);
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
connect(scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(updateSceneRect(const QRectF &)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue