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*/);
|
setRenderHints(QPainter::TextAntialiasing | QPainter::Antialiasing/* | QPainter::SmoothPixmapTransform*/);
|
||||||
setDragMode(RubberBandDrag);
|
setDragMode(RubberBandDrag);
|
||||||
setViewportUpdateMode(BoundingRectViewportUpdate);
|
setViewportUpdateMode(BoundingRectViewportUpdate);
|
||||||
|
setFocusPolicy(Qt::NoFocus);
|
||||||
|
|
||||||
connect(scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(updateSceneRect(const QRectF &)));
|
connect(scene, SIGNAL(sceneRectChanged(const QRectF &)), this, SLOT(updateSceneRect(const QRectF &)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,7 @@ void TabGame::retranslateUi()
|
||||||
|
|
||||||
loadLocalButton->setText(tr("Load &local deck"));
|
loadLocalButton->setText(tr("Load &local deck"));
|
||||||
loadRemoteButton->setText(tr("Load d&eck from server"));
|
loadRemoteButton->setText(tr("Load d&eck from server"));
|
||||||
readyStartButton->setText(tr("&Start game"));
|
readyStartButton->setText(tr("S&tart game"));
|
||||||
sayLabel->setText(tr("&Say:"));
|
sayLabel->setText(tr("&Say:"));
|
||||||
cardInfo->retranslateUi();
|
cardInfo->retranslateUi();
|
||||||
zoneLayout->retranslateUi();
|
zoneLayout->retranslateUi();
|
||||||
|
|
Loading…
Reference in a new issue