Skip to content
Snippets Groups Projects
Commit 73609768 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

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.
parent b932615c
No related branches found
No related tags found
No related merge requests found
...@@ -117,9 +117,11 @@ CompletionWidget::CompletionWidget(CompletionSupport *support, ITextEditable *ed ...@@ -117,9 +117,11 @@ CompletionWidget::CompletionWidget(CompletionSupport *support, ITextEditable *ed
this, SLOT(completionActivated(const QModelIndex &))); this, SLOT(completionActivated(const QModelIndex &)));
// We disable the frame on this list view and use a QFrame around it instead. // 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); m_popupFrame = new QFrame(0, Qt::Popup);
#ifndef Q_WS_MAC
m_popupFrame->setFrameStyle(frameStyle()); m_popupFrame->setFrameStyle(frameStyle());
#endif
setFrameStyle(QFrame::NoFrame); setFrameStyle(QFrame::NoFrame);
setParent(m_popupFrame); setParent(m_popupFrame);
m_popupFrame->setObjectName("m_popupFrame"); m_popupFrame->setObjectName("m_popupFrame");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment