mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
removed the ability for rating using the mouse right button
This commit is contained in:
parent
4e7367198b
commit
cd4c86a80c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user