mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
minor changes, implemented 'doesn't untap' and facedown cards
This commit is contained in:
parent
e6d6162426
commit
a429a4a004
37 changed files with 198 additions and 101 deletions
|
|
@ -17,7 +17,6 @@ WndDeckEditor::WndDeckEditor(CardDatabase *_db, QWidget *parent)
|
|||
deckModel = new DeckListModel(db, this);
|
||||
deckView = new QTreeView();
|
||||
deckView->setModel(deckModel);
|
||||
// deckView->setSortingEnabled(true);
|
||||
connect(deckView->selectionModel(), SIGNAL(currentRowChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(updateCardInfoRight(const QModelIndex &, const QModelIndex &)));
|
||||
|
||||
cardInfo = new CardInfoWidget(db);
|
||||
|
|
@ -99,6 +98,8 @@ void WndDeckEditor::actSaveDeck()
|
|||
void WndDeckEditor::actSaveDeckAs()
|
||||
{
|
||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save deck as"), QString(), tr("Deck files (*.dec)"));
|
||||
if (fileName.isEmpty())
|
||||
return;
|
||||
if (!fileName.endsWith(".dec"))
|
||||
fileName.append(".dec");
|
||||
if (deckModel->saveToFile(fileName))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue