# HG changeset patch # User Rik # Date 1346788466 25200 # Node ID 8639a450a89e298b1e8fd4ba2536c777cef8eba8 # Parent ae9079bbc62733cb67c5509edf4976dc818d1353 build: Test for QT setPlaceholderText function before using it. * webinfo.cc: build: Test for QT setPlaceholderText function before using it. diff --git a/libgui/src/qtinfo/webinfo.cc b/libgui/src/qtinfo/webinfo.cc --- 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"));