clicklabel: Add right button click signal
This commit is contained in:
@@ -7,5 +7,9 @@ void ClickLabel::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
emit leftClick();
|
||||
}
|
||||
if(event->button() == Qt::RightButton)
|
||||
{
|
||||
emit rightClick();
|
||||
}
|
||||
return QLabel::mousePressEvent(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user