[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/extragear/graphics/digikam/core
From: Marcel Wiesweg <marcel.wiesweg () gmx ! de>
Date: 2011-01-27 20:17:29
Message-ID: 20110127201729.8328DAC8BB () svn ! kde ! org
[Download RAW message or body]
SVN commit 1217537 by mwiesweg:
Only use left button click for rating widget
BUG: 196922
M +2 -1 NEWS
M +16 -1 libs/widgets/common/ratingwidget.cpp
--- branches/extragear/graphics/digikam/core/NEWS #1217536:1217537
@@ -51,4 +51,5 @@
034 ==> 243066 : Timeline view does not display images.
035 ==> 243069 : Video replay restarts when starring.
036 ==> 246772 : Curves: Don't recalculate on mouseUp if the position of the marker did not change.
-037 ==>
+037 ==> 196922 : Both mouse buttons change ratings on thumbnail bar.
+038 ==>
--- branches/extragear/graphics/digikam/core/libs/widgets/common/ratingwidget.cpp #1217536:1217537
@@ -257,6 +257,11 @@
void RatingWidget::mousePressEvent(QMouseEvent* e)
{
+ if (e->button() != Qt::LeftButton)
+ {
+ return;
+ }
+
if (hasFading() && d->fadingValue < 255)
{
return;
@@ -293,6 +298,11 @@
void RatingWidget::mouseMoveEvent(QMouseEvent* e)
{
+ if (!(e->buttons() & Qt::LeftButton))
+ {
+ return;
+ }
+
if (hasFading() && d->fadingValue < 255)
{
return;
@@ -323,8 +333,13 @@
}
}
-void RatingWidget::mouseReleaseEvent(QMouseEvent*)
+void RatingWidget::mouseReleaseEvent(QMouseEvent* e)
{
+ if (e->button() != Qt::LeftButton)
+ {
+ return;
+ }
+
if (hasFading() && d->fadingValue < 255)
{
return;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic