summaryrefslogtreecommitdiffstats
path: root/src/modules/reguser/dialog.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/reguser/dialog.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/reguser/dialog.h')
-rw-r--r--src/modules/reguser/dialog.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/modules/reguser/dialog.h b/src/modules/reguser/dialog.h
index c292adc4..28ff1a15 100644
--- a/src/modules/reguser/dialog.h
+++ b/src/modules/reguser/dialog.h
@@ -27,20 +27,20 @@
#include "kvi_regusersdb.h"
#include "kvi_selectors.h"
-#include <qwidget.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
#include "kvi_tal_listview.h"
#include "kvi_tal_listbox.h"
#include "kvi_pointerhashtable.h"
#include "kvi_tal_popupmenu.h"
#ifdef COMPILE_USE_QT4
- #include <q3intdict.h>
- #include <q3simplerichtext.h>
- #define QSimpleRichText Q3SimpleRichText
+ #include <tq3intdict.h>
+ #include <tq3simplerichtext.h>
+ #define TQSimpleRichText Q3SimpleRichText
#else
- #include <qsimplerichtext.h>
- #include <qintdict.h>
+ #include <tqsimplerichtext.h>
+ #include <tqintdict.h>
#endif
@@ -88,46 +88,47 @@ class KviRegisteredUsersDialogItem : public KviRegisteredUsersDialogItemBase
{
protected:
KviRegisteredUser * m_pUser;
- QSimpleRichText * m_pText;
+ TQSimpleRichText * m_pText;
public:
KviRegisteredUsersDialogItem(KviTalListViewItem * par,KviRegisteredUser * u);
~KviRegisteredUsersDialogItem();
public:
KviRegisteredUser * user(){ return m_pUser; };
void setUser(KviRegisteredUser * u){ m_pUser = u; };
- virtual void paintCell(QPainter * p,const QColorGroup &cg,int column,int width,int align);
+ virtual void paintCell(TQPainter * p,const TQColorGroup &cg,int column,int width,int align);
virtual void setup();
- virtual QString key(int,bool) const;
+ virtual TQString key(int,bool) const;
};
-class KviRegisteredUsersDialog : public QWidget
+class KviRegisteredUsersDialog : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KviRegisteredUsersDialog(QWidget * par = 0);
+ KviRegisteredUsersDialog(TQWidget * par = 0);
~KviRegisteredUsersDialog();
public:
KviTalListView * m_pListView;
- QPushButton * m_pAddButton;
- QPushButton * m_pWizardAddButton;
- QPushButton * m_pRemoveButton;
- QPushButton * m_pEditButton;
- QPushButton * m_pImportButton;
- QPushButton * m_pExportButton;
- QPushButton * m_pAddGroupButton;
+ TQPushButton * m_pAddButton;
+ TQPushButton * m_pWizardAddButton;
+ TQPushButton * m_pRemoveButton;
+ TQPushButton * m_pEditButton;
+ TQPushButton * m_pImportButton;
+ TQPushButton * m_pExportButton;
+ TQPushButton * m_pAddGroupButton;
#ifdef COMPILE_USE_QT4
Q3IntDict<KviRegisteredUserGroup> m_TmpDict;
#else
- QIntDict<KviRegisteredUserGroup> m_TmpDict;
+ TQIntDict<KviRegisteredUserGroup> m_TmpDict;
#endif
protected slots:
- void itemPressed(KviTalListViewItem *it,const QPoint &pnt,int c);
+ void itemPressed(KviTalListViewItem *it,const TQPoint &pnt,int c);
void itemDoubleClicked(KviTalListViewItem *it);
protected:
void fillList();
protected:
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
void editItem(KviRegisteredUsersDialogItem * i);
void editGroup(KviRegisteredUserGroup* group);
protected slots:
@@ -141,7 +142,7 @@ protected slots:
void exportClicked();
void addWizardClicked();
void addGroupClicked();
- void listViewRightButtonClicked ( KviTalListViewItem *, const QPoint &, int );
+ void listViewRightButtonClicked ( KviTalListViewItem *, const TQPoint &, int );
void moveToGroupMenuClicked(int);
};