Implement middle click
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@@ -142,6 +142,9 @@ bool ProjectItemDelegate::editorEvent(QEvent* event,
|
||||
|
||||
auto mouseEvent = (QMouseEvent*)event;
|
||||
|
||||
if (mouseEvent->button() != Qt::LeftButton)
|
||||
return false;
|
||||
|
||||
QStyleOptionViewItem opt(option);
|
||||
initStyleOption(&opt, index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user