forked from qt-creator/qt-creator
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user