fixed Board posts links copy on right-click

This commit is contained in:
csoler 2023-07-18 20:03:46 +02:00
parent 030bc46d26
commit 10feb45bce
2 changed files with 7 additions and 2 deletions

View File

@ -258,7 +258,11 @@ void ElidedLabel::mousePressEvent(QMouseEvent *ev)
return; // eat event
}
QLabel::mousePressEvent(ev);
emit clicked(ev->pos());
if(ev->buttons()==Qt::RightButton)
emit rightClicked(ev->pos());
else
emit clicked(ev->pos());
}
void ElidedLabel::setTextColor(const QColor &color)

View File

@ -77,7 +77,8 @@ protected:
signals:
void elisionChanged(bool elided);
void clicked(QPoint pos);
void rightClicked(QPoint pos);
void clicked(QPoint pos);
private:
bool mElided;