From 5860ff37023ae561c9de2ac727b56b4fd699919b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= <thorbjorn.lindeijer@nokia.com> Date: Mon, 17 May 2010 18:21:27 +0200 Subject: [PATCH] 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 --- src/plugins/texteditor/completionwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/texteditor/completionwidget.cpp b/src/plugins/texteditor/completionwidget.cpp index 5575d9ad45d..031ddbe39c6 100644 --- a/src/plugins/texteditor/completionwidget.cpp +++ b/src/plugins/texteditor/completionwidget.cpp @@ -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); -- GitLab