summaryrefslogtreecommitdiffstats
path: root/src/modules/addon/managementdialog.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/addon/managementdialog.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/addon/managementdialog.h')
-rw-r--r--src/modules/addon/managementdialog.h54
1 files changed, 28 insertions, 26 deletions
diff --git a/src/modules/addon/managementdialog.h b/src/modules/addon/managementdialog.h
index 0abbb4f9..a0ed1ad4 100644
--- a/src/modules/addon/managementdialog.h
+++ b/src/modules/addon/managementdialog.h
@@ -24,24 +24,24 @@
//
//=============================================================================
-#include <qdialog.h>
+#include <tqdialog.h>
#include "kvi_listview.h"
#include "kvi_settings.h"
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qdialog.h>
-#include <qcolor.h>
+#include <tqwidget.h>
+#include <tqlabel.h>
+#include <tqdialog.h>
+#include <tqcolor.h>
#include "kvi_tal_listview.h"
-class QPushButton;
-class QPixmap;
+class TQPushButton;
+class TQPixmap;
class KviKvsScriptAddon;
#ifdef COMPILE_USE_QT4
- #include <QTextDocument>
+ #include <TQTextDocument>
#else
- #include <qsimplerichtext.h>
+ #include <tqsimplerichtext.h>
#endif
class KviScriptAddonListViewItem : public KviTalListViewItem
@@ -52,54 +52,56 @@ public:
protected:
KviKvsScriptAddon * m_pAddon;
#ifdef COMPILE_USE_QT4
- QTextDocument * m_pText;
+ TQTextDocument * m_pText;
#else
- QSimpleRichText * m_pText;
+ TQSimpleRichText * m_pText;
#endif
- QPixmap * m_pIcon;
+ TQPixmap * m_pIcon;
KviTalListView * m_pListView;
- QString m_szKey;
+ TQString m_szKey;
public:
KviKvsScriptAddon * addon(){ return m_pAddon; };
protected:
- virtual QString key(int,bool) const;
- virtual void paintCell(QPainter * p,const QColorGroup & cg,int column,int width,int align);
+ virtual TQString key(int,bool) const;
+ virtual void paintCell(TQPainter * p,const TQColorGroup & cg,int column,int width,int align);
virtual void setup();
};
class KviScriptAddonListView : public KviListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- KviScriptAddonListView(QWidget * pParent);
+ KviScriptAddonListView(TQWidget * pParent);
~KviScriptAddonListView();
protected:
- virtual void resizeEvent(QResizeEvent * e);
+ virtual void resizeEvent(TQResizeEvent * e);
};
-class KviScriptManagementDialog : public QDialog
+class KviScriptManagementDialog : public TQDialog
{
Q_OBJECT
+ TQ_OBJECT
protected:
- KviScriptManagementDialog(QWidget * p);
+ KviScriptManagementDialog(TQWidget * p);
public:
~KviScriptManagementDialog();
protected:
KviScriptAddonListView * m_pListView;
static KviScriptManagementDialog * m_pInstance;
- QPushButton * m_pUninstallButton;
- QPushButton * m_pConfigureButton;
- QPushButton * m_pHelpButton;
- QPushButton * m_pInstallButton;
- QPushButton * m_pGetScriptsButton;
+ TQPushButton * m_pUninstallButton;
+ TQPushButton * m_pConfigureButton;
+ TQPushButton * m_pHelpButton;
+ TQPushButton * m_pInstallButton;
+ TQPushButton * m_pGetScriptsButton;
public:
static KviScriptManagementDialog * instance(){ return m_pInstance; };
static void display();
static void cleanup();
protected:
void fillListView();
- virtual void showEvent(QShowEvent * e);
- virtual void closeEvent(QCloseEvent *e);
+ virtual void showEvent(TQShowEvent * e);
+ virtual void closeEvent(TQCloseEvent *e);
protected slots:
void currentChanged(KviTalListViewItem *i);
void closeClicked();