Diffstat (limited to 'noncore/net/opieirc/ircmisc.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircmisc.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/noncore/net/opieirc/ircmisc.h b/noncore/net/opieirc/ircmisc.h index 4df6ce0..7151e6b 100644 --- a/noncore/net/opieirc/ircmisc.h +++ b/noncore/net/opieirc/ircmisc.h | |||
@@ -24,2 +24,3 @@ | |||
24 | #include <qtabwidget.h> | 24 | #include <qtabwidget.h> |
25 | #include <qlineedit.h> | ||
25 | #include <qtabbar.h> | 26 | #include <qtabbar.h> |
@@ -27,3 +28,3 @@ | |||
27 | #include <qcolor.h> | 28 | #include <qcolor.h> |
28 | #include <qvector.h> | 29 | #include <qarray.h> |
29 | 30 | ||
@@ -52,2 +53,7 @@ protected: | |||
52 | 53 | ||
54 | class QExtTab : public QTab { | ||
55 | public: | ||
56 | QColor color; | ||
57 | }; | ||
58 | |||
53 | class IRCTabWidget : public QTabWidget { | 59 | class IRCTabWidget : public QTabWidget { |
@@ -56,3 +62,3 @@ public: | |||
56 | IRCTabWidget(QWidget *parent = 0, const char *name = 0); | 62 | IRCTabWidget(QWidget *parent = 0, const char *name = 0); |
57 | void setTabColor(int index, const QColor *color); | 63 | void setTabColor(int index, QColor color); |
58 | }; | 64 | }; |
@@ -63,3 +69,3 @@ public: | |||
63 | IRCTabBar(QWidget *parent = 0, const char *name = 0); | 69 | IRCTabBar(QWidget *parent = 0, const char *name = 0); |
64 | void setTabColor(int index, const QColor *color); | 70 | void setTabColor(int index, QColor color); |
65 | protected: | 71 | protected: |
@@ -68,3 +74,16 @@ protected: | |||
68 | protected: | 74 | protected: |
69 | QVector<QColor> m_colors; | 75 | QArray<QColor> m_colors; |
76 | }; | ||
77 | |||
78 | /* A QLineEdit with history functionality */ | ||
79 | |||
80 | class IRCHistoryLineEdit : public QLineEdit { | ||
81 | Q_OBJECT | ||
82 | public: | ||
83 | IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); | ||
84 | protected: | ||
85 | void keyPressEvent(QKeyEvent *); | ||
86 | protected: | ||
87 | QStringList m_history; | ||
88 | int m_index; | ||
70 | }; | 89 | }; |