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 @@ #include <qtabwidget.h> +#include <qlineedit.h> #include <qtabbar.h> @@ -27,3 +28,3 @@ #include <qcolor.h> -#include <qvector.h> +#include <qarray.h> @@ -52,2 +53,7 @@ protected: +class QExtTab : public QTab { +public: + QColor color; +}; + class IRCTabWidget : public QTabWidget { @@ -56,3 +62,3 @@ public: IRCTabWidget(QWidget *parent = 0, const char *name = 0); - void setTabColor(int index, const QColor *color); + void setTabColor(int index, QColor color); }; @@ -63,3 +69,3 @@ public: IRCTabBar(QWidget *parent = 0, const char *name = 0); - void setTabColor(int index, const QColor *color); + void setTabColor(int index, QColor color); protected: @@ -68,3 +74,16 @@ protected: protected: - QVector<QColor> m_colors; + QArray<QColor> m_colors; +}; + +/* A QLineEdit with history functionality */ + +class IRCHistoryLineEdit : public QLineEdit { + Q_OBJECT +public: + IRCHistoryLineEdit(QWidget *parent = 0, const char *name = 0); +protected: + void keyPressEvent(QKeyEvent *); +protected: + QStringList m_history; + int m_index; }; |