Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
fead9f31
Commit
fead9f31
authored
Mar 18, 2015
by
poixen
Browse files
Merge pull request #839 from poixen/resize_columns
Resized game view columns
parents
b1231e64
39482534
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/gameselector.cpp
View file @
fead9f31
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment