]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/FancyLineEdit.h
Implement down key press in FancyLineEdit
[lyx.git] / src / frontends / qt4 / FancyLineEdit.h
index ec472eed8c7ee8cc3f652f91693f7d3f39025b4c..cd3c6b5951c25208d9615ee43890b39b0e60a585 100644 (file)
@@ -14,8 +14,8 @@
 #ifndef FANCYLINEEDIT_H
 #define FANCYLINEEDIT_H
 
-#include <QtGui/QLineEdit>
-#include <QtGui/QAbstractButton>
+#include <QLineEdit>
+#include <QAbstractButton>
 
 namespace lyx {
 namespace frontend {
@@ -45,7 +45,6 @@ private:
     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
@@ -66,8 +65,8 @@ Q_SIGNALS:
     void buttonClicked(Side side);
     void leftButtonClicked();
     void rightButtonClicked();
+       void downPressed();
 
-#if QT_VERSION >= 0x040600
 public:
     explicit FancyLineEdit(QWidget *parent = 0);
     ~FancyLineEdit();
@@ -98,6 +97,7 @@ private Q_SLOTS:
 
 protected:
     virtual void resizeEvent(QResizeEvent *e);
+       virtual void keyPressEvent(QKeyEvent *e);
 
 private:
     void updateMargins();
@@ -105,12 +105,6 @@ private:
 
     FancyLineEditPrivate *m_d;
     QString m_oldText;
-#else
-public:
-       explicit FancyLineEdit(QWidget *parent = 0) 
-               : QLineEdit(parent) 
-       {}
-#endif // QT_VERSION >= 0x040600*/
 };
 
 }