diff --git a/modules/gui/qt4/util/searchlineedit.cpp b/modules/gui/qt4/util/searchlineedit.cpp
index 3017b7de28cab3c3acb13d012dd9ddc4bab18a11..1b5f4e1a01b2f30aacab6ae30ae8d86f017bb860 100644
--- a/modules/gui/qt4/util/searchlineedit.cpp
+++ b/modules/gui/qt4/util/searchlineedit.cpp
@@ -40,7 +40,7 @@
 
 #include <vlc_intf_strings.h>
 
-#if QT_VERSION < 0x040700
+#if !HAS_QT47
 
 ClickLineEdit::ClickLineEdit( const QString &msg, QWidget *parent) : QLineEdit( parent )
 {