Fix shift-click selection on macOS

PR #22284.
Closes #16818.
This commit is contained in:
Luke Memet
2025-02-19 05:52:51 -05:00
committed by GitHub
parent 5ddc5a8b87
commit 693390ff27
4 changed files with 127 additions and 0 deletions

View File

@@ -74,6 +74,7 @@
#include "utils.h"
#ifdef Q_OS_MACOS
#include "macosshiftclickhandler.h"
#include "macutilities.h"
#endif
@@ -158,6 +159,7 @@ TransferListWidget::TransferListWidget(IGUIApplication *app, QWidget *parent)
setDropIndicatorShown(true);
#if defined(Q_OS_MACOS)
setAttribute(Qt::WA_MacShowFocusRect, false);
new MacOSShiftClickHandler(this);
#endif
header()->setFirstSectionMovable(true);
header()->setStretchLastSection(false);