support right-click menu in VDS (#5622)

* support right-click menu in VDS

* move methods around
This commit is contained in:
RickyRister 2025-02-15 18:43:20 -08:00 committed by GitHub
parent 2247c66ea6
commit abca5514af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 1 deletions

View file

@ -38,6 +38,9 @@ void DeckPreviewCardPictureWidget::mousePressEvent(QMouseEvent *event)
if (event->button() == Qt::LeftButton) {
lastMouseEvent = event;
singleClickTimer->start(QApplication::doubleClickInterval());
} else {
emit imageClicked(event, this);
event->accept();
}
}