From 39482534c0850ca1495abf6267ab7e11e83293f7 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Mon, 16 Mar 2015 11:21:15 +0100 Subject: [PATCH] Resized game view columns Previously all columns were the same width, making it cramped. I have resized them to give a better initial width. --- cockatrice/src/gameselector.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cockatrice/src/gameselector.cpp b/cockatrice/src/gameselector.cpp index 98285322..fc9f1396 100644 --- a/cockatrice/src/gameselector.cpp +++ b/cockatrice/src/gameselector.cpp @@ -35,6 +35,16 @@ GameSelector::GameSelector(AbstractClient *_client, const TabSupervisor *_tabSup gameListView->sortByColumn(gameListModel->startTimeColIndex(), Qt::AscendingOrder); gameListView->setAlternatingRowColors(true); gameListView->setRootIsDecorated(true); + // game created width + gameListView->resizeColumnToContents(1); + // players width + gameListView->resizeColumnToContents(6); + // description width + gameListView->setColumnWidth(2, gameListView->columnWidth(2) * 1.7); + // creator width + gameListView->setColumnWidth(3, gameListView->columnWidth(3) * 1.2); + // game type width + gameListView->setColumnWidth(4, gameListView->columnWidth(4) * 1.4); if (_room) gameListView->header()->hideSection(gameListModel->roomColIndex());