author | wazlaf <wazlaf> | 2002-10-15 10:11:31 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-10-15 10:11:31 (UTC) |
commit | e09b7ab685d29eba947c3bb021192408acae70be (patch) (unidiff) | |
tree | 5adf52c8d56819aab0daed8e7da189110276e90a /noncore/net/opieirc/ircmisc.h | |
parent | 31a73cafb40fffe2bbc12bb6fd0df6dc254d6646 (diff) | |
download | opie-e09b7ab685d29eba947c3bb021192408acae70be.zip opie-e09b7ab685d29eba947c3bb021192408acae70be.tar.gz opie-e09b7ab685d29eba947c3bb021192408acae70be.tar.bz2 |
some qwhatsthis introduced, the IRCHistoryLineEdit now catches tabs
Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (ignore whitespace changes)
-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 | |||
@@ -70,22 +70,23 @@ public: | |||
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 */ |