-rw-r--r-- | noncore/net/opieirc/ircmisc.h | 3 |
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: | |||
66 | class IRCTabBar : public QTabBar { | 66 | class IRCTabBar : public QTabBar { |
67 | Q_OBJECT | 67 | Q_OBJECT |
68 | public: | 68 | public: |
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); |
71 | protected: | 71 | protected: |
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); |
74 | protected: | 74 | protected: |
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 | ||
80 | class IRCHistoryLineEdit : public QLineEdit { | 80 | class IRCHistoryLineEdit : public QLineEdit { |
81 | Q_OBJECT | 81 | Q_OBJECT |
82 | public: | 82 | public: |
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); | ||
84 | protected: | 85 | protected: |
85 | void keyPressEvent(QKeyEvent *); | 86 | void keyPressEvent(QKeyEvent *); |
86 | protected: | 87 | protected: |
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 */ |