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
@ -399,15 +399,16 @@ void StarEditor::leaveEvent(QEvent * event){
|
|||||||
|
|
||||||
void StarEditor::mousePressEvent(QMouseEvent * event )
|
void StarEditor::mousePressEvent(QMouseEvent * event )
|
||||||
{
|
{
|
||||||
int star = starAtPosition(event->x());
|
if(event->button() == Qt::LeftButton)
|
||||||
|
{
|
||||||
if (star != myStarRating.starCount() && star != -1) {
|
int star = starAtPosition(event->x());
|
||||||
myStarRating.setStarCount(star);
|
|
||||||
shouldCommitData = true;
|
|
||||||
emit commitData();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
if (star != myStarRating.starCount() && star != -1) {
|
||||||
|
myStarRating.setStarCount(star);
|
||||||
|
shouldCommitData = true;
|
||||||
|
emit commitData();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int StarEditor::starAtPosition(int x)
|
int StarEditor::starAtPosition(int x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user