From 1f81d78814354ab87c4df9afed0cb157c314a605 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 6 Jun 2011 15:53:43 +0000 Subject: [PATCH] Revert r38963. Compilation is now broken with qt 4.5, but I do not know Qt moc business and do not have time to investigate. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38969 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/FancyLineEdit.cpp | 6 ++---- src/frontends/qt4/FancyLineEdit.h | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt4/FancyLineEdit.cpp b/src/frontends/qt4/FancyLineEdit.cpp index 428e0a1849..da4dc7e1a6 100644 --- a/src/frontends/qt4/FancyLineEdit.cpp +++ b/src/frontends/qt4/FancyLineEdit.cpp @@ -11,12 +11,8 @@ // Code taken from the Qt Creator project and customized a little -#include - #include "FancyLineEdit.h" -#if QT_VERSION >= 0x040600 - #include #include #include @@ -30,6 +26,8 @@ #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 89ef45b4ab..ec472eed8c 100644 --- a/src/frontends/qt4/FancyLineEdit.h +++ b/src/frontends/qt4/FancyLineEdit.h @@ -22,7 +22,6 @@ namespace frontend { class FancyLineEditPrivate; -#if QT_VERSION >= 0x040600 class IconButton: public QAbstractButton { Q_OBJECT @@ -45,7 +44,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") -- 2.39.2