Ensure the completion box is initialized before computing its size hint.

This commit is contained in:
Roberto Raggi
2010-03-29 12:19:53 +02:00
parent f5468b608f
commit fd8581b07f

View File

@@ -158,6 +158,7 @@ void CompletionWidget::closeList(const QModelIndex &index)
void CompletionWidget::showCompletions(int startPos)
{
ensurePolished();
updatePositionAndSize(startPos);
show();
setFocus();