1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Disable expand on double click in TorrentContentTreeView

We hook our own actions on double click. Fixes #14269
This commit is contained in:
jagannatharjun 2021-01-25 13:35:22 +05:30
parent 42637a642b
commit 3371709472

View File

@ -64,6 +64,8 @@ namespace
TorrentContentTreeView::TorrentContentTreeView(QWidget *parent)
: QTreeView(parent)
{
setExpandsOnDoubleClick(false);
// This hack fixes reordering of first column with Qt5.
// https://github.com/qtproject/qtbase/commit/e0fc088c0c8bc61dbcaf5928b24986cd61a22777
QTableView unused;