From 6c10936f6d6e3b7731a08656ec471014321e3455 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 28 Dec 2011 23:31:50 +0200 Subject: [PATCH] Make torrent sorting case insensitive (Closes #857154) --- src/torrentfilesmodel.h | 1 + src/transferlistwidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/torrentfilesmodel.h b/src/torrentfilesmodel.h index aae512ed5..75e4cd355 100644 --- a/src/torrentfilesmodel.h +++ b/src/torrentfilesmodel.h @@ -620,6 +620,7 @@ public: setFilterKeyColumn(TorrentFileItem::COL_NAME); setFilterRole(Qt::DisplayRole); setDynamicSortFilter(true); + setSortCaseSensitivity(Qt::CaseInsensitive); } ~TorrentFilesFilterModel() { diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index f7e964033..e3c0257c4 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -94,6 +94,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window, nameFilterModel->setSourceModel(statusFilterModel); nameFilterModel->setFilterKeyColumn(TorrentModelItem::TR_NAME); nameFilterModel->setFilterRole(Qt::DisplayRole); + nameFilterModel->setSortCaseSensitivity(Qt::CaseInsensitive); setModel(nameFilterModel);