src/hbwidgets/itemviews/hbindexfeedback.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   235 
   235 
   236     return d->mItemView;
   236     return d->mItemView;
   237 }
   237 }
   238 
   238 
   239 /*!
   239 /*!
       
   240 
       
   241     \deprecated HbIndexFeedback::primitive(HbStyle::Primitive)
       
   242         is deprecated.
       
   243 
   240     Returns the primitives used in HbIndexFeedback.
   244     Returns the primitives used in HbIndexFeedback.
   241 
   245 
   242     \param primitive The primitive type requested.
   246     \param primitive The primitive type requested.
   243 
   247 
   244     \return A pointer for the primitive requested.
   248     \return A pointer for the primitive requested.
   349 
   353 
   350     switch (d->mIndexFeedbackPolicy) {
   354     switch (d->mIndexFeedbackPolicy) {
   351         case IndexFeedbackSingleCharacter:
   355         case IndexFeedbackSingleCharacter:
   352             {
   356             {
   353                 fontSpec = HbFontSpec(HbFontSpec::Primary);
   357                 fontSpec = HbFontSpec(HbFontSpec::Primary);
   354                 fontSpec.setTextPaneHeight(d->textHeight());
   358                 fontSpec.setTextHeight(d->textHeight());
   355             }
   359             }
   356             break;
   360             break;
   357             
   361             
   358         case IndexFeedbackThreeCharacter:
   362         case IndexFeedbackThreeCharacter:
   359             {
   363             {
   360                 fontSpec = HbFontSpec(HbFontSpec::Primary);
   364                 fontSpec = HbFontSpec(HbFontSpec::Primary);
   361                 fontSpec.setTextPaneHeight(d->textHeight());
   365                 fontSpec.setTextHeight(d->textHeight());
   362             }
   366             }
   363             break;
   367             break;
   364 
   368 
   365         case IndexFeedbackString:
   369         case IndexFeedbackString:
   366             {
   370             {
   367                 fontSpec = HbFontSpec(HbFontSpec::Primary);
   371                 fontSpec = HbFontSpec(HbFontSpec::Primary);
   368                 qreal textPaneHeight = 0;
   372                 qreal textHeight = 0;
   369                 style()->parameter(QLatin1String("hb-param-text-height-primary"), textPaneHeight);
   373                 style()->parameter(QLatin1String("hb-param-text-height-primary"), textHeight);
   370                 fontSpec.setTextPaneHeight( textPaneHeight );
   374                 fontSpec.setTextHeight( textHeight );
   371             }
   375             }
   372             break;
   376             break;
   373 
   377 
   374         case IndexFeedbackNone:
   378         case IndexFeedbackNone:
   375             // leave the HbStyleOption uninitialized
   379             // leave the HbStyleOption uninitialized