Mercurial > hg > octave-thorsten
changeset 15287:8639a450a89e
build: Test for QT setPlaceholderText function before using it.
* webinfo.cc: build: Test for QT setPlaceholderText function before using it.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 04 Sep 2012 12:54:26 -0700 |
parents | ae9079bbc627 |
children | 92476462d01f |
files | libgui/src/qtinfo/webinfo.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/qtinfo/webinfo.cc +++ b/libgui/src/qtinfo/webinfo.cc @@ -70,7 +70,10 @@ layout->addLayout (hboxLayout); _search_line_edit = new QLineEdit(this); + // FIXME: maybe put in a better test in configure.ac +#if QT_VERSION >= 0x040700 _search_line_edit->setPlaceholderText (tr ("Type here and press \'Return\' to search")); +#endif hboxLayout->addWidget (_search_line_edit); _search_check_box = new QCheckBox (tr ("Global search"));