equal
deleted
inserted
replaced
195 Populates the candidate list with text strings given as parameter. |
195 Populates the candidate list with text strings given as parameter. |
196 */ |
196 */ |
197 void HbCandidateList::populateList(const QStringList &candidates, bool addSpellQuery) |
197 void HbCandidateList::populateList(const QStringList &candidates, bool addSpellQuery) |
198 { |
198 { |
199 Q_D(HbCandidateList); |
199 Q_D(HbCandidateList); |
200 // Only for the first time when we launch candidate list its not setting a layout, |
200 // Only for the first time when we launch candidate list its not setting a layout, |
201 // Mostly the problem is form Qt side, for the time being to resolve issue related to candidate list |
201 // Mostly the problem is form Qt side, for the time being to resolve issue related to candidate list |
202 // making visible property true. |
202 // making visible property true. |
203 setVisible(true); |
203 setVisible(true); |
204 QEvent event(QEvent::Polish); |
204 QEvent event(QEvent::Polish); |
205 QApplication::sendEvent(this, &event); |
205 QApplication::sendEvent(this, &event); |
206 setContentWidget(d->mList); |
206 setContentWidget(d->mList); |
207 |
207 |
208 d->setPriority(HbPopupPrivate::VirtualKeyboard + 1); // Should be shown on top of virtual keyboard. |
208 d->setPriority(HbPopupPrivate::VirtualKeyboard + 1); // Should be shown on top of virtual keyboard. |
209 d->mList->clear(); |
209 d->mList->clear(); |
210 |
210 |