--- a/src/hbwidgets/sliders/hbratingslider.cpp Wed Jun 23 18:33:25 2010 +0300
+++ b/src/hbwidgets/sliders/hbratingslider.cpp Tue Jul 06 14:36:53 2010 +0300
@@ -22,14 +22,14 @@
** Nokia at developer.feedback@nokia.com.
**
****************************************************************************/
-
+#include "hbratingslider_p.h"
#include <hbratingslider.h>
-#include "hbratingslider_p.h"
#include <hbtooltip.h>
#include <hbstyleoptionratingslider_p.h>
#include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent>
#include <hbtoucharea.h>
+#include <hbwidgetfeedback.h>
#ifdef HB_GESTURE_FW
#include <hbtapgesture.h>
@@ -566,6 +566,7 @@
}
QRectF rect = d->mTouchArea->boundingRect();
if(rect.contains(xVal,0 )) {
+ HbWidgetFeedback::triggered(this, Hb::InstantPressed);
d->mMousePressed = true;
updatePrimitives();
rating = d->calculateProgressValue(xVal);
@@ -606,9 +607,11 @@
HbToolTip::showText(toolTip(),this);
}
setCurrentRating(rating);
+ HbWidgetFeedback::triggered(this, Hb::InstantReleased);
if(d->mCurrentValue) {
emit ratingDone (d->mCurrentValue);
}
+
event->accept();
d->mMousePressed = false;
updatePrimitives();
@@ -661,6 +664,7 @@
HbToolTip::showText(toolTip(),this);
}
setCurrentRating(rating);
+ HbWidgetFeedback::continuousTriggered(this, Hb::ContinuousDragged);
emit ratingChanged (d->mCurrentValue);
event->accept();
}
@@ -691,6 +695,7 @@
rating = d->calculateProgressValue(xVal);
setCurrentRating(rating);
+ HbWidgetFeedback::triggered(this, Hb::InstantReleased);
if(d->mCurrentValue) {
emit ratingDone (d->mCurrentValue);
}