mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
[Fix-Warnings] Lint.
This commit is contained in:
parent
f2d3e81331
commit
70f5f5e768
3 changed files with 3 additions and 3 deletions
|
|
@ -220,7 +220,7 @@ bool ShortcutsSettings::isKeyAllowed(const QString &name, const QString &sequenc
|
||||||
const QString checkSequence = sequences.split(sep).last();
|
const QString checkSequence = sequences.split(sep).last();
|
||||||
const QStringList forbiddenKeys{"Del", "Backspace", "Down", "Up", "Left", "Right",
|
const QStringList forbiddenKeys{"Del", "Backspace", "Down", "Up", "Left", "Right",
|
||||||
"Return", "Enter", "Menu", "Ctrl+Alt+-", "Ctrl+Alt+=", "Ctrl+Alt+[",
|
"Return", "Enter", "Menu", "Ctrl+Alt+-", "Ctrl+Alt+=", "Ctrl+Alt+[",
|
||||||
"Ctrl+Alt+]", "Tab", "Space", "Shift+S", "Shift+Left", "Shift+Right"};
|
"Ctrl+Alt+]", "Tab", "Space", "Shift+S", "Shift+Left", "Shift+Right"};
|
||||||
return !forbiddenKeys.contains(checkSequence);
|
return !forbiddenKeys.contains(checkSequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ int FlowLayout::layoutAllRows(const int originX, const int originY, const int av
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize itemSize = item->sizeHint(); // The suggested size for the current item
|
QSize itemSize = item->sizeHint(); // The suggested size for the current item
|
||||||
const int itemWidth = itemSize.width() + horizontalSpacing(); // Item width plus spacing
|
const int itemWidth = itemSize.width() + horizontalSpacing(); // Item width plus spacing
|
||||||
|
|
||||||
// Check if the current item fits in the remaining width of the current row
|
// Check if the current item fits in the remaining width of the current row
|
||||||
|
|
|
||||||
|
|
@ -580,7 +580,7 @@ bool DeckEditorDeckDockWidget::swapCard(const QModelIndex ¤tIndex)
|
||||||
const QModelIndex newCardIndex = card
|
const QModelIndex newCardIndex = card
|
||||||
? deckModel->addCard(card, otherZoneName)
|
? deckModel->addCard(card, otherZoneName)
|
||||||
// Third argument (true) says create the card no matter what, even if not in DB
|
// Third argument (true) says create the card no matter what, even if not in DB
|
||||||
: deckModel->addPreferredPrintingCard(cardName, otherZoneName, true);
|
: deckModel->addPreferredPrintingCard(cardName, otherZoneName, true);
|
||||||
recursiveExpand(proxy->mapToSource(newCardIndex));
|
recursiveExpand(proxy->mapToSource(newCardIndex));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue