mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
removed the ability for rating using the mouse right button
This commit is contained in:
@ -398,6 +398,8 @@ void StarEditor::leaveEvent(QEvent * event){
|
||||
}
|
||||
|
||||
void StarEditor::mousePressEvent(QMouseEvent * event )
|
||||
{
|
||||
if(event->button() == Qt::LeftButton)
|
||||
{
|
||||
int star = starAtPosition(event->x());
|
||||
|
||||
@ -406,8 +408,7 @@ void StarEditor::mousePressEvent(QMouseEvent * event )
|
||||
shouldCommitData = true;
|
||||
emit commitData();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
int StarEditor::starAtPosition(int x)
|
||||
|
Reference in New Issue
Block a user