Fix showing hint in library filter widget on mac.

This commit is contained in:
John Maguire 2011-05-23 12:52:27 +00:00
parent 20534811c8
commit 3fd8d4f78e
1 changed files with 2 additions and 0 deletions

View File

@ -113,10 +113,12 @@ LibraryFilterWidget::LibraryFilterWidget(QWidget *parent)
ui_->options->setMenu(library_menu_);
#ifdef Q_OS_DARWIN
QString hint = ui_->filter->hint();
delete ui_->filter;
MacLineEdit* lineedit = new MacLineEdit(this);
ui_->horizontalLayout->insertWidget(1, lineedit);
filter_ = lineedit;
filter_->set_hint(hint);
#else
filter_ = ui_->filter;
#endif