mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
fixed Board posts links copy on right-click
This commit is contained in:
parent
030bc46d26
commit
10feb45bce
@ -258,7 +258,11 @@ void ElidedLabel::mousePressEvent(QMouseEvent *ev)
|
|||||||
return; // eat event
|
return; // eat event
|
||||||
}
|
}
|
||||||
QLabel::mousePressEvent(ev);
|
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)
|
void ElidedLabel::setTextColor(const QColor &color)
|
||||||
|
@ -77,7 +77,8 @@ protected:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void elisionChanged(bool elided);
|
void elisionChanged(bool elided);
|
||||||
void clicked(QPoint pos);
|
void rightClicked(QPoint pos);
|
||||||
|
void clicked(QPoint pos);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool mElided;
|
bool mElided;
|
||||||
|
Loading…
Reference in New Issue
Block a user