forked from qt-creator/qt-creator
Ensure the completion box is initialized before computing its size hint.
This commit is contained in:
@@ -158,6 +158,7 @@ void CompletionWidget::closeList(const QModelIndex &index)
|
|||||||
|
|
||||||
void CompletionWidget::showCompletions(int startPos)
|
void CompletionWidget::showCompletions(int startPos)
|
||||||
{
|
{
|
||||||
|
ensurePolished();
|
||||||
updatePositionAndSize(startPos);
|
updatePositionAndSize(startPos);
|
||||||
show();
|
show();
|
||||||
setFocus();
|
setFocus();
|
||||||
|
|||||||
Reference in New Issue
Block a user