mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
improved importer
This commit is contained in:
parent
aae2c437d6
commit
3c8f2b878b
9 changed files with 160 additions and 93 deletions
|
|
@ -33,6 +33,7 @@ WndDeckEditor::WndDeckEditor(CardDatabase *_db, QWidget *parent)
|
|||
databaseView = new QTreeView();
|
||||
databaseView->setModel(databaseDisplayModel);
|
||||
databaseView->setUniformRowHeights(true);
|
||||
databaseView->setAlternatingRowColors(true);
|
||||
databaseView->setSortingEnabled(true);
|
||||
databaseView->sortByColumn(0, Qt::AscendingOrder);
|
||||
databaseView->resizeColumnToContents(0);
|
||||
|
|
@ -194,7 +195,7 @@ void WndDeckEditor::updateCardInfoRight(const QModelIndex ¤t, const QModel
|
|||
|
||||
void WndDeckEditor::updateSearch(const QString &search)
|
||||
{
|
||||
databaseDisplayModel->setFilterRegExp(search);
|
||||
databaseDisplayModel->setFilterFixedString(search);
|
||||
}
|
||||
|
||||
bool WndDeckEditor::confirmClose()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue