Enable right-click to select macro segments

This will be used to enable copy-paste via the context menu available
when right-clicking a macro segment
This commit is contained in:
WarmUpTill
2024-05-08 19:41:28 +02:00
committed by WarmUpTill
parent d28164d02f
commit a360d53419

View File

@@ -176,7 +176,8 @@ bool MacroSegmentList::eventFilter(QObject *object, QEvent *event)
void MacroSegmentList::mousePressEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
if (event->button() == Qt::LeftButton ||
event->button() == Qt::RightButton) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
_dragPosition = GetDragIndex(event->globalPos());
#else