#ifndef FANCYLINEEDIT_H
#define FANCYLINEEDIT_H
-#include <QtGui/QLineEdit>
-#include <QtGui/QAbstractButton>
+#include <QLineEdit>
+#include <QAbstractButton>
namespace lyx {
namespace frontend {
QPixmap m_pixmap;
};
-
/* 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")
* when not focused and empty. When connecting to the changed signals and
void buttonClicked(Side side);
void leftButtonClicked();
void rightButtonClicked();
+ void downPressed();
-#if QT_VERSION >= 0x040600
public:
explicit FancyLineEdit(QWidget *parent = 0);
~FancyLineEdit();
protected:
virtual void resizeEvent(QResizeEvent *e);
+ virtual void keyPressEvent(QKeyEvent *e);
private:
void updateMargins();
FancyLineEditPrivate *m_d;
QString m_oldText;
-#else
-public:
- explicit FancyLineEdit(QWidget *parent = 0)
- : QLineEdit(parent)
- {}
-#endif // QT_VERSION >= 0x040600*/
};
}