// Code taken from the Qt Creator project and customized a little
-#include <config.h>
-
#include "FancyLineEdit.h"
-#if QT_VERSION >= 0x040600
-
#include <QtCore/QEvent>
#include <QtCore/QDebug>
#include <QtCore/QString>
#include <QtGui/QStyle>
#include <QtGui/QPaintEvent>
+#if QT_VERSION >= 0x040600
+
enum { margin = 6 };
#define ICONBUTTON_HEIGHT 18
class FancyLineEditPrivate;
-#if QT_VERSION >= 0x040600
class IconButton: public QAbstractButton
{
Q_OBJECT
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")