mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 21:04:07 -07:00
Style lint.
Took 48 seconds
This commit is contained in:
parent
18d9992dc5
commit
9eb2e732b4
1 changed files with 6 additions and 3 deletions
|
|
@ -91,8 +91,9 @@ void DeckListHistoryManagerWidget::refreshList()
|
||||||
|
|
||||||
void DeckListHistoryManagerWidget::doUndo()
|
void DeckListHistoryManagerWidget::doUndo()
|
||||||
{
|
{
|
||||||
if (!historyManager->canUndo())
|
if (!historyManager->canUndo()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
deckListModel->getDeckList()->restoreMemento(historyManager->undo(deckListModel->getDeckList()));
|
deckListModel->getDeckList()->restoreMemento(historyManager->undo(deckListModel->getDeckList()));
|
||||||
deckListModel->rebuildTree();
|
deckListModel->rebuildTree();
|
||||||
|
|
@ -104,8 +105,9 @@ void DeckListHistoryManagerWidget::doUndo()
|
||||||
|
|
||||||
void DeckListHistoryManagerWidget::doRedo()
|
void DeckListHistoryManagerWidget::doRedo()
|
||||||
{
|
{
|
||||||
if (!historyManager->canRedo())
|
if (!historyManager->canRedo()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
deckListModel->getDeckList()->restoreMemento(historyManager->redo(deckListModel->getDeckList()));
|
deckListModel->getDeckList()->restoreMemento(historyManager->redo(deckListModel->getDeckList()));
|
||||||
deckListModel->rebuildTree();
|
deckListModel->rebuildTree();
|
||||||
|
|
@ -119,8 +121,9 @@ void DeckListHistoryManagerWidget::doRedo()
|
||||||
void DeckListHistoryManagerWidget::onListClicked(QListWidgetItem *item)
|
void DeckListHistoryManagerWidget::onListClicked(QListWidgetItem *item)
|
||||||
{
|
{
|
||||||
// Ignore non-selectable items (like divider)
|
// Ignore non-selectable items (like divider)
|
||||||
if (!(item->flags() & Qt::ItemIsSelectable))
|
if (!(item->flags() & Qt::ItemIsSelectable)) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const QString mode = item->data(Qt::UserRole).toString();
|
const QString mode = item->data(Qt::UserRole).toString();
|
||||||
int index = item->data(Qt::UserRole + 1).toInt();
|
int index = item->data(Qt::UserRole + 1).toInt();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue