diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/alistbox.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/alistbox.h')
-rw-r--r-- | ksirc/alistbox.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/ksirc/alistbox.h b/ksirc/alistbox.h index 0f818bba..e1e4c2c9 100644 --- a/ksirc/alistbox.h +++ b/ksirc/alistbox.h @@ -1,7 +1,7 @@ #ifndef ALISTBOX_H #define ALISTBOX_H -#include <qlistbox.h> +#include <tqlistbox.h> #include "ksopts.h" class nickListItem : public QListBoxItem @@ -11,10 +11,10 @@ class nickListItem : public QListBoxItem nickListItem(const nickListItem &old); virtual ~nickListItem(); - virtual int height ( const QListBox * ) const; - virtual int width ( const QListBox * ) const; - QString text () const { return string; } - const QPixmap* pixmap () const; + virtual int height ( const TQListBox * ) const; + virtual int width ( const TQListBox * ) const; + TQString text () const { return string; } + const TQPixmap* pixmap () const; bool op() const { return is_op; } bool voice() const { return is_voice; } @@ -26,16 +26,16 @@ class nickListItem : public QListBoxItem void setAway(bool _away = FALSE); void setIrcOp(bool _ircop = FALSE); - void setText(const QString &str) { string = str; } + void setText(const TQString &str) { string = str; } - QString nickPrefix() const; + TQString nickPrefix() const; - void forceColour(const QColor *col); + void forceColour(const TQColor *col); nickListItem &operator= ( const nickListItem & nli ); protected: - virtual void paint ( QPainter * ); + virtual void paint ( TQPainter * ); private: bool is_op:1; @@ -43,8 +43,8 @@ protected: bool is_away:1; bool is_ircop:1; - QString string; - const QColor *forcedCol; + TQString string; + const TQColor *forcedCol; }; class aListBox : public QListBox @@ -52,20 +52,20 @@ class aListBox : public QListBox Q_OBJECT public: - aListBox(QWidget *parent = 0, const char *name = 0); + aListBox(TQWidget *parent = 0, const char *name = 0); virtual ~aListBox(); void clear(); void inSort ( nickListItem *); - void inSort ( QString text, bool top=FALSE); + void inSort ( TQString text, bool top=FALSE); nickListItem *item(int index); bool isTop(int index); - int findNick(const QString &str); + int findNick(const TQString &str); void clearAdvOps(); @@ -77,33 +77,33 @@ public: unsigned short int nickPrefixWidth() const { return m_nickPrefixWidth; } - virtual void fontChange( const QFont &f ); + virtual void fontChange( const TQFont &f ); - static QString nickPrefixOp() { return QString::fromLatin1( "o" ); } - static QString nickPrefixVoice() { return QString::fromLatin1( "v" ); } - static QString nickPrefixAway() { return QString::fromLatin1( "a" ); } - static QString nickPrefixIrcOp() { return QString::fromLatin1( "O" ); } + static TQString nickPrefixOp() { return TQString::fromLatin1( "o" ); } + static TQString nickPrefixVoice() { return TQString::fromLatin1( "v" ); } + static TQString nickPrefixAway() { return TQString::fromLatin1( "a" ); } + static TQString nickPrefixIrcOp() { return TQString::fromLatin1( "O" ); } signals: void contextMenuRequested(int index); - void selectedNick(const QString&); - void urlsDropped( const QStringList& urls, const QString& nick ); - void textDropped( const QListBoxItem *item, const QString& text ); + void selectedNick(const TQString&); + void urlsDropped( const TQStringList& urls, const TQString& nick ); + void textDropped( const TQListBoxItem *item, const TQString& text ); protected: virtual int findSep(); - virtual int searchFor(const QString &nick, bool &found, bool top); - virtual void dragMoveEvent( QDragMoveEvent * ); - virtual void dropEvent( QDropEvent * ); + virtual int searchFor(const TQString &nick, bool &found, bool top); + virtual void dragMoveEvent( TQDragMoveEvent * ); + virtual void dropEvent( TQDropEvent * ); private slots: - void reEmitContextMenuRequest( QListBoxItem *item ); + void reEmitContextMenuRequest( TQListBoxItem *item ); private: void updateNeedNickPrefixFlag() const; void updateNickPrefixWidth(); - QPalette p_scroll; + TQPalette p_scroll; mutable bool m_nickListDirty; mutable bool m_needNickPrefix; int m_nickPrefixWidth; |