summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircmisc.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircmisc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircmisc.h b/noncore/net/opieirc/ircmisc.h
index b4a5b06..c42dcbd 100644
--- a/noncore/net/opieirc/ircmisc.h
+++ b/noncore/net/opieirc/ircmisc.h
@@ -52,20 +52,28 @@ protected:
52 int insertTab(QTab *, int index = -1); 52 int insertTab(QTab *, int index = -1);
53protected: 53protected:
54 QArray<QColor> m_colors; 54 QArray<QColor> m_colors;
55}; 55};
56 56
57/* A QLineEdit with history functionality and tab completion */ 57/* A QLineEdit with history functionality and tab completion */
58 58
59class IRCHistoryLineEdit : public QLineEdit { 59class IRCHistoryLineEdit : public QLineEdit {
60 Q_OBJECT 60 Q_OBJECT
61public: 61public:
62 IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); 62 IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0);
63 virtual bool eventFilter(QObject *object, QEvent *event); 63 virtual bool eventFilter(QObject *object, QEvent *event);
64public slots:
65 void setEditFocus();
66signals:
67 void nextTab();
68 void prevTab();
69 void closeTab();
70
71
64protected: 72protected:
65 void keyPressEvent(QKeyEvent *); 73 void keyPressEvent(QKeyEvent *);
66protected: 74protected:
67 QStringList m_history; 75 QStringList m_history;
68 int m_index; 76 int m_index;
69}; 77};
70 78
71#endif /* __IRCMISC_H */ 79#endif /* __IRCMISC_H */