mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
implemented conceding
This commit is contained in:
parent
207d10d3e2
commit
78c1851c52
18 changed files with 168 additions and 51 deletions
|
|
@ -9,7 +9,7 @@ RemoteDeckList_TreeWidget::RemoteDeckList_TreeWidget(Client *_client, QWidget *p
|
|||
{
|
||||
header()->setResizeMode(QHeaderView::ResizeToContents);
|
||||
setColumnCount(3);
|
||||
|
||||
|
||||
refreshTree();
|
||||
retranslateUi();
|
||||
}
|
||||
|
|
@ -33,6 +33,7 @@ void RemoteDeckList_TreeWidget::addFileToTree(DeckList_File *file, QTreeWidgetIt
|
|||
newDeck->setData(2, Qt::DisplayRole, file->getUploadTime());
|
||||
|
||||
parent->addChild(newDeck);
|
||||
sortItems(0, Qt::AscendingOrder);
|
||||
}
|
||||
|
||||
void RemoteDeckList_TreeWidget::addFolderToTree(DeckList_Directory *folder, QTreeWidgetItem *parent)
|
||||
|
|
@ -62,6 +63,7 @@ void RemoteDeckList_TreeWidget::addFolderToTree(DeckList_Directory *folder, QTre
|
|||
else
|
||||
addFileToTree(dynamic_cast<DeckList_File *>(folderItems[i]), newItem);
|
||||
}
|
||||
sortItems(0, Qt::AscendingOrder);
|
||||
}
|
||||
|
||||
void RemoteDeckList_TreeWidget::refreshTree()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue