mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
fixes
This commit is contained in:
parent
b482e5e764
commit
3bea78e0ab
2 changed files with 2 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include "game_view.h"
|
||||
|
||||
#include "../client/settings/cache_settings.h"
|
||||
#include "../game/game.h"
|
||||
#include "game_scene.h"
|
||||
|
||||
#include <QAction>
|
||||
|
|
@ -196,9 +195,5 @@ void GameView::updateTotalSelectionCount(const QSize &viewSize)
|
|||
*/
|
||||
void GameView::setFocusDisabled(bool disabled)
|
||||
{
|
||||
if (disabled) {
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
} else {
|
||||
setFocusPolicy(Qt::ClickFocus);
|
||||
}
|
||||
setFocusPolicy(disabled ? Qt::NoFocus : Qt::ClickFocus);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ private slots:
|
|||
void stopRubberBand();
|
||||
void refreshShortcuts();
|
||||
void updateTotalSelectionCount(const QSize &viewSize = QSize());
|
||||
void setFocusDisabled(bool focusEnabled);
|
||||
void setFocusDisabled(bool disabled);
|
||||
public slots:
|
||||
void updateSceneRect(const QRectF &rect);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue