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 |