diff --git a/src/widgets/favoritewidget.cpp b/src/widgets/favoritewidget.cpp index 2db34ad8e..2fe6dbd64 100644 --- a/src/widgets/favoritewidget.cpp +++ b/src/widgets/favoritewidget.cpp @@ -70,9 +70,7 @@ void FavoriteWidget::paintEvent(QPaintEvent *e) { } -void FavoriteWidget::mouseReleaseEvent(QMouseEvent *e) { - - Q_UNUSED(e); +void FavoriteWidget::mouseDoubleClickEvent(QMouseEvent *e) { favorite_ = !favorite_; update(); diff --git a/src/widgets/favoritewidget.h b/src/widgets/favoritewidget.h index 5fd6e4256..267fcb15a 100644 --- a/src/widgets/favoritewidget.h +++ b/src/widgets/favoritewidget.h @@ -46,7 +46,7 @@ class FavoriteWidget : public QWidget { protected: void paintEvent(QPaintEvent *e) override; - void mouseReleaseEvent(QMouseEvent *e) override; + void mouseDoubleClickEvent(QMouseEvent*) override; private: static const int kStarSize;