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.
This commit is contained in:
Roberto Raggi
2010-01-28 16:53:23 +01:00
parent b932615ca0
commit 7360976861

View File

@@ -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");