summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircmisc.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircmisc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircmisc.h b/noncore/net/opieirc/ircmisc.h
index 7151e6b..6a8db50 100644
--- a/noncore/net/opieirc/ircmisc.h
+++ b/noncore/net/opieirc/ircmisc.h
@@ -66,26 +66,27 @@ public:
66class IRCTabBar : public QTabBar { 66class IRCTabBar : public QTabBar {
67 Q_OBJECT 67 Q_OBJECT
68public: 68public:
69 IRCTabBar(QWidget *parent = 0, const char *name = 0); 69 IRCTabBar(QWidget *parent = 0, const char *name = 0);
70 void setTabColor(int index, QColor color); 70 void setTabColor(int index, QColor color);
71protected: 71protected:
72 void paintLabel(QPainter*, const QRect&, QTab*, bool) const; 72 void paintLabel(QPainter*, const QRect&, QTab*, bool) const;
73 int insertTab(QTab *, int index = -1); 73 int insertTab(QTab *, int index = -1);
74protected: 74protected:
75 QArray<QColor> m_colors; 75 QArray<QColor> m_colors;
76}; 76};
77 77
78/* A QLineEdit with history functionality */ 78/* A QLineEdit with history functionality and tab completion */
79 79
80class IRCHistoryLineEdit : public QLineEdit { 80class IRCHistoryLineEdit : public QLineEdit {
81 Q_OBJECT 81 Q_OBJECT
82public: 82public:
83 IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); 83 IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0);
84 virtual bool eventFilter(QObject *object, QEvent *event);
84protected: 85protected:
85 void keyPressEvent(QKeyEvent *); 86 void keyPressEvent(QKeyEvent *);
86protected: 87protected:
87 QStringList m_history; 88 QStringList m_history;
88 int m_index; 89 int m_index;
89}; 90};
90 91
91#endif /* __IRCMISC_H */ 92#endif /* __IRCMISC_H */