Implement middle click
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
9f768f76bb
commit
5832fb8b95
2 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue