case insensitive game sorting
This commit is contained in:
parent
be7779a466
commit
a947cac585
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ GameSelector::GameSelector(AbstractClient *_client, TabRoom *_room, QWidget *par
|
||||||
gameListModel = new GamesModel(room->getGameTypes(), this);
|
gameListModel = new GamesModel(room->getGameTypes(), this);
|
||||||
gameListProxyModel = new GamesProxyModel(this);
|
gameListProxyModel = new GamesProxyModel(this);
|
||||||
gameListProxyModel->setSourceModel(gameListModel);
|
gameListProxyModel->setSourceModel(gameListModel);
|
||||||
|
gameListProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||||
gameListView->setModel(gameListProxyModel);
|
gameListView->setModel(gameListProxyModel);
|
||||||
gameListView->header()->setResizeMode(0, QHeaderView::ResizeToContents);
|
gameListView->header()->setResizeMode(0, QHeaderView::ResizeToContents);
|
||||||
gameListView->setSortingEnabled(true);
|
gameListView->setSortingEnabled(true);
|
||||||
|
|
Loading…
Reference in a new issue