mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Sending card name to chat on shift+click (#3106)
This commit is contained in:
parent
8084ab605f
commit
11ad677fe8
5 changed files with 16 additions and 3 deletions
|
|
@ -271,7 +271,9 @@ void AbstractCardItem::setFaceDown(bool _facedown)
|
|||
|
||||
void AbstractCardItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if ((event->modifiers() & Qt::ControlModifier)) {
|
||||
if ((event->modifiers() & Qt::AltModifier) && event->button() == Qt::LeftButton) {
|
||||
emit cardShiftClicked(name);
|
||||
} else if ((event->modifiers() & Qt::ControlModifier)) {
|
||||
setSelected(!isSelected());
|
||||
} else if (!isSelected()) {
|
||||
scene()->clearSelection();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue