Merge pull request #14292 from jagannatharjun/fix-double-click

Disable expand on double click in TorrentContentTreeView
This commit is contained in:
Mike Tzou 2021-01-26 12:14:55 +08:00 committed by GitHub
commit 53f29613c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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