diff --git a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp index 1cb000d7c..c5e0b774d 100644 --- a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp +++ b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp @@ -235,6 +235,14 @@ void CardInfoPictureWidget::mouseMoveEvent(QMouseEvent *event) } } +void CardInfoPictureWidget::mousePressEvent(QMouseEvent *event) +{ + QWidget::mousePressEvent(event); + if (event->button() == Qt::RightButton) { + qDebug() << "TRACK clicked!"; + } +} + /** * @brief Displays the enlarged version of the card's pixmap near the cursor. * diff --git a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h index f274d8ad1..9ac49e118 100644 --- a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h +++ b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h @@ -41,6 +41,7 @@ protected: #endif void leaveEvent(QEvent *event) override; void mouseMoveEvent(QMouseEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; void loadPixmap(); [[nodiscard]] const QPixmap &getResizedPixmap() const {