summaryrefslogtreecommitdiffstats
path: root/src/modules/list/listwindow.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/list/listwindow.h
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/list/listwindow.h')
-rw-r--r--src/modules/list/listwindow.h47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/modules/list/listwindow.h b/src/modules/list/listwindow.h
index 8e7d510e..c0103519 100644
--- a/src/modules/list/listwindow.h
+++ b/src/modules/list/listwindow.h
@@ -34,8 +34,8 @@
#include "kvi_tal_listview.h"
#include "kvi_tal_popupmenu.h"
-#include <qtoolbutton.h>
-#include <qlineedit.h>
+#include <tqtoolbutton.h>
+#include <tqlineedit.h>
class KviThemedLabel;
@@ -44,13 +44,13 @@ class KviChannelListViewItemData
friend class KviChannelListViewItem;
friend class KviListWindow;
public:
- KviChannelListViewItemData(const QString &szChan,const QString &szUsers,const QString &szTopic);
+ KviChannelListViewItemData(const TQString &szChan,const TQString &szUsers,const TQString &szTopic);
~KviChannelListViewItemData();
protected:
- QString m_szChan;
- QString m_szUsers;
- QString m_szTopic;
- QString m_szUsersKey;
+ TQString m_szChan;
+ TQString m_szUsers;
+ TQString m_szTopic;
+ TQString m_szUsersKey;
};
class KviChannelListViewItem : public KviTalListViewItem
@@ -62,15 +62,15 @@ public:
protected:
KviChannelListViewItemData * m_pData;
public:
- const QString & channel(){ return m_pData->m_szChan; };
+ const TQString & channel(){ return m_pData->m_szChan; };
#ifdef COMPILE_USE_QT4
- int width ( const QFontMetrics & fm, const KviTalListView * lv, int column ) const;
+ int width ( const TQFontMetrics & fm, const KviTalListView * lv, int column ) const;
#else
- int width ( const QFontMetrics & fm, const QListView * lv, int column ) const;
+ int width ( const TQFontMetrics & fm, const TQListView * lv, int column ) const;
#endif
protected:
- virtual void paintCell(QPainter * p,const QColorGroup &cg,int col,int wdth,int align);
- virtual QString key(int col,bool) const;
+ virtual void paintCell(TQPainter * p,const TQColorGroup &cg,int col,int wdth,int align);
+ virtual TQString key(int col,bool) const;
};
@@ -78,30 +78,31 @@ protected:
class KviListWindow : public KviWindow, public KviExternalServerDataParser
{
Q_OBJECT
+ TQ_OBJECT
public:
KviListWindow(KviFrame * lpFrm,KviConsole * lpConsole);
~KviListWindow();
protected:
- QSplitter * m_pVertSplitter;
- QSplitter * m_pTopSplitter;
+ TQSplitter * m_pVertSplitter;
+ TQSplitter * m_pTopSplitter;
KviTalListView * m_pListView;
- QLineEdit * m_pParamsEdit;
- QToolButton * m_pRequestButton;
- QToolButton * m_pStopListDownloadButton;
- QToolButton * m_pOpenButton;
- QToolButton * m_pSaveButton;
+ TQLineEdit * m_pParamsEdit;
+ TQToolButton * m_pRequestButton;
+ TQToolButton * m_pStopListDownloadButton;
+ TQToolButton * m_pOpenButton;
+ TQToolButton * m_pSaveButton;
KviThemedLabel * m_pInfoLabel;
- QTimer * m_pFlushTimer;
+ TQTimer * m_pFlushTimer;
KviPointerList<KviChannelListViewItemData> * m_pItemList;
public: // Methods
virtual void control(int msg);
virtual void processData(KviIrcMessage * msg);
virtual void die();
protected:
- virtual QPixmap * myIconPtr();
+ virtual TQPixmap * myIconPtr();
virtual void fillCaptionBuffers();
virtual void applyOptions();
- virtual void resizeEvent(QResizeEvent *e);
+ virtual void resizeEvent(TQResizeEvent *e);
virtual void getBaseLogFileName(KviStr &buffer);
protected slots:
void flush();
@@ -112,7 +113,7 @@ protected slots:
void exportList();
void importList();
public:
- virtual QSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
private:
void reset();
void endOfList();