mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -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 "game_view.h"
|
||||||
|
|
||||||
#include "../client/settings/cache_settings.h"
|
#include "../client/settings/cache_settings.h"
|
||||||
#include "../game/game.h"
|
|
||||||
#include "game_scene.h"
|
#include "game_scene.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
|
@ -196,9 +195,5 @@ void GameView::updateTotalSelectionCount(const QSize &viewSize)
|
||||||
*/
|
*/
|
||||||
void GameView::setFocusDisabled(bool disabled)
|
void GameView::setFocusDisabled(bool disabled)
|
||||||
{
|
{
|
||||||
if (disabled) {
|
setFocusPolicy(disabled ? Qt::NoFocus : Qt::ClickFocus);
|
||||||
setFocusPolicy(Qt::NoFocus);
|
|
||||||
} else {
|
|
||||||
setFocusPolicy(Qt::ClickFocus);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ private slots:
|
||||||
void stopRubberBand();
|
void stopRubberBand();
|
||||||
void refreshShortcuts();
|
void refreshShortcuts();
|
||||||
void updateTotalSelectionCount(const QSize &viewSize = QSize());
|
void updateTotalSelectionCount(const QSize &viewSize = QSize());
|
||||||
void setFocusDisabled(bool focusEnabled);
|
void setFocusDisabled(bool disabled);
|
||||||
public slots:
|
public slots:
|
||||||
void updateSceneRect(const QRectF &rect);
|
void updateSceneRect(const QRectF &rect);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue