mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 10:22:15 -07:00
detect right clicks
This commit is contained in:
parent
4e0de1c066
commit
a4db7abb17
2 changed files with 9 additions and 0 deletions
|
|
@ -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.
|
* @brief Displays the enlarged version of the card's pixmap near the cursor.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ protected:
|
||||||
#endif
|
#endif
|
||||||
void leaveEvent(QEvent *event) override;
|
void leaveEvent(QEvent *event) override;
|
||||||
void mouseMoveEvent(QMouseEvent *event) override;
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void loadPixmap();
|
void loadPixmap();
|
||||||
[[nodiscard]] const QPixmap &getResizedPixmap() const
|
[[nodiscard]] const QPixmap &getResizedPixmap() const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue