equal
deleted
inserted
replaced
21 ** If you have questions regarding the use of this file, please contact |
21 ** If you have questions regarding the use of this file, please contact |
22 ** Nokia at developer.feedback@nokia.com. |
22 ** Nokia at developer.feedback@nokia.com. |
23 ** |
23 ** |
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
|
26 #include "hbindexfeedback_p.h" |
26 #include "hbindexfeedback.h" |
27 #include "hbindexfeedback.h" |
27 #include "hbindexfeedback_p.h" |
|
28 |
28 |
29 #include <hbscrollbar.h> |
29 #include <hbscrollbar.h> |
30 #include <hbabstractitemview.h> |
30 #include <hbabstractitemview.h> |
31 #include <hbabstractviewitem.h> |
31 #include <hbabstractviewitem.h> |
32 #include <hbstyle.h> |
32 #include <hbstyle.h> |
187 /* |
187 /* |
188 Returns the qstring which will be the text in the index feedback. |
188 Returns the qstring which will be the text in the index feedback. |
189 */ |
189 */ |
190 QString HbIndexFeedbackPrivate::displayText(const QVariant &data) const |
190 QString HbIndexFeedbackPrivate::displayText(const QVariant &data) const |
191 { |
191 { |
192 QString retVal = QString(); |
192 QString retVal; |
193 |
193 |
194 switch (mIndexFeedbackPolicy) { |
194 switch (mIndexFeedbackPolicy) { |
195 case HbIndexFeedback::IndexFeedbackSingleCharacter: |
195 case HbIndexFeedback::IndexFeedbackSingleCharacter: |
196 retVal = data.toString().left(1); |
196 retVal = data.toString().left(1); |
197 break; |
197 break; |