diff libgui/src/m-editor/find-dialog.cc @ 15291:7ae14907ae43

build: Add tests for specific Qt functions to configure.ac * configure.ac: Add OCTAVE_CHECK_FUNC_FINDFIRST_MODERN and OCTAVE_CHECK_FUNC_SETPLACEHOLDERTEXT macro calls * m4/acinclude.m4 (OCTAVE_CHECK_FUNC_SETPLACEHOLDERTEXT): Check whether Qt has SetPlaceholderText function. * (OCTAVE_CHECK_FUNC_FINDFIRST_MODERN): Check whether Qscintilla FindFirst accepts 16 or 17 input arguments. * find-dialog.cc, webinfo.cc: check configure HAVE_XXX values before using possibly unsupported functions.
author Rik <rik@octave.org>
date Tue, 04 Sep 2012 15:54:12 -0700
parents ae9079bbc627
children 501a9cc2c68f
line wrap: on
line diff
--- a/libgui/src/m-editor/find-dialog.cc
+++ b/libgui/src/m-editor/find-dialog.cc
@@ -150,8 +150,7 @@
                                       !_backward_check_box->isChecked (),
                                       line,col,
                                       true
-// FIXME: write a proper configure test (is it worth?)
-#if QSCINTILLA_VERSION >= 0x020600
+#ifdef HAVE_FINDFIRST_MODERN
                                       , true
 #endif
                                       );