diff --git a/src/frontends/qt4/FancyLineEdit.cpp b/src/frontends/qt4/FancyLineEdit.cpp index da4dc7e1a6..428e0a1849 100644 --- a/src/frontends/qt4/FancyLineEdit.cpp +++ b/src/frontends/qt4/FancyLineEdit.cpp @@ -11,8 +11,12 @@ // Code taken from the Qt Creator project and customized a little +#include + #include "FancyLineEdit.h" +#if QT_VERSION >= 0x040600 + #include #include #include @@ -26,8 +30,6 @@ #include #include -#if QT_VERSION >= 0x040600 - enum { margin = 6 }; #define ICONBUTTON_HEIGHT 18 diff --git a/src/frontends/qt4/FancyLineEdit.h b/src/frontends/qt4/FancyLineEdit.h index ec472eed8c..89ef45b4ab 100644 --- a/src/frontends/qt4/FancyLineEdit.h +++ b/src/frontends/qt4/FancyLineEdit.h @@ -22,6 +22,7 @@ namespace frontend { class FancyLineEditPrivate; +#if QT_VERSION >= 0x040600 class IconButton: public QAbstractButton { Q_OBJECT @@ -44,7 +45,7 @@ private: bool m_autoHide; QPixmap m_pixmap; }; - +#endif /* A line edit with an embedded pixmap on one side that is connected to * a menu. Additionally, it can display a grayed hintText (like "Type Here to")