Fix compilation of QSearchField in Qt 4.6

This commit is contained in:
John Maguire 2012-06-28 13:17:51 +02:00
parent 1ebca65c0b
commit c1def8bb26
1 changed files with 4 additions and 0 deletions

View File

@ -105,7 +105,11 @@ void QSearchField::setPlaceholderText(const QString &text)
}
QString QSearchField::placeholderText() const {
#if QT_VERSION >= 0x040700
return pimpl->lineEdit->placeholderText();
#else
return QString();
#endif
}
void QSearchField::clear()