Fix Mac native widgets to at least show up on Qt 4.8.

This commit is contained in:
John Maguire 2011-11-09 14:34:11 +01:00
parent a57d947a33
commit 7e5eb1c220
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ void SearchTargetWrapper::SetEnabled(bool enabled) {
MacLineEdit::MacLineEdit(QWidget* parent)
: QMacCocoaViewContainer(0, parent),
LineEditInterface(this) {
setAttribute(Qt::WA_PaintOnScreen);
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSSearchField* search = [[NSSearchField alloc] init];