Use the editor font in the completion widget

This is pretty common in other editors, and the application font looks
weird if the text editor font is significantly larger.

Task-number: QTCREATORBUG-1424
Reviewed-by: Olivier Goffart
This commit is contained in:
Thorbjørn Lindeijer
2010-05-17 18:21:27 +02:00
parent b52f3cb274
commit 5860ff3702

View File

@@ -153,6 +153,7 @@ CompletionWidget::CompletionWidget(CompletionSupport *support, ITextEditable *ed
setObjectName(QLatin1String("m_popupFrame"));
setAttribute(Qt::WA_DeleteOnClose);
setMinimumSize(1, 1);
setFont(editor->widget()->font());
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);