HistoryLineEdit.h 763 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * HistoryLineEdit.h
  3. * nirc
  4. *
  5. * Created by Niklas Bölter on 03.02.10.
  6. * Copyright 2010 Frubar Corporation.
  7. *
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. *
  15. *
  16. */
  17. #ifndef NIRC_HISTORYLINEDIT_H
  18. #define NIRC_HISTORYLINEDIT_H
  19. #include <QLineEdit>
  20. #include <QKeyEvent>
  21. class HistoryLineEdit : public QLineEdit
  22. {
  23. Q_OBJECT
  24. public:
  25. HistoryLineEdit(QWidget *parent = 0);
  26. protected:
  27. void keyPressEvent(QKeyEvent *event);
  28. bool focusNextPrevChild(bool next);
  29. signals:
  30. void tabPressed();
  31. void upPressed();
  32. void downPressed();
  33. };
  34. #endif