From 7360976861ee540defd4b9a0c40d6077e7bac2db Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Thu, 28 Jan 2010 16:53:23 +0100 Subject: [PATCH] Removed the extra frame around our completion box when compiling for Q_WS_MAC. Yeah, now it looks as bad as the native completion widget :) Reported by Nigel. --- src/plugins/texteditor/completionwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/texteditor/completionwidget.cpp b/src/plugins/texteditor/completionwidget.cpp index fb766e2d20f..335d998a5b9 100644 --- a/src/plugins/texteditor/completionwidget.cpp +++ b/src/plugins/texteditor/completionwidget.cpp @@ -117,9 +117,11 @@ CompletionWidget::CompletionWidget(CompletionSupport *support, ITextEditable *ed this, SLOT(completionActivated(const QModelIndex &))); // We disable the frame on this list view and use a QFrame around it instead. - // This fixes the missing frame on Mac and improves the look with QGTKStyle. + // This improves the look with QGTKStyle. m_popupFrame = new QFrame(0, Qt::Popup); +#ifndef Q_WS_MAC m_popupFrame->setFrameStyle(frameStyle()); +#endif setFrameStyle(QFrame::NoFrame); setParent(m_popupFrame); m_popupFrame->setObjectName("m_popupFrame"); -- GitLab