summaryrefslogtreecommitdiffstats
path: root/src/modules/about
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/about')
-rw-r--r--src/modules/about/aboutdialog.cpp46
-rw-r--r--src/modules/about/aboutdialog.h3
2 files changed, 25 insertions, 24 deletions
diff --git a/src/modules/about/aboutdialog.cpp b/src/modules/about/aboutdialog.cpp
index 4d13d98f..47f18adb 100644
--- a/src/modules/about/aboutdialog.cpp
+++ b/src/modules/about/aboutdialog.cpp
@@ -31,12 +31,12 @@
#include "kvi_fileutils.h"
#include "kvi_sourcesdate.h"
-#include <qwidget.h>
-#include <qlayout.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
#include <kvi_tal_textedit.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qevent.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqevent.h>
extern KviAboutDialog * g_pAboutDialog;
/*
@@ -78,36 +78,36 @@ KviAboutDialog::KviAboutDialog()
KviStr buffer;
g_pApp->findImage(buffer,"kvi_splash.png");
- QPixmap pix(buffer.ptr());
+ TQPixmap pix(TQString(buffer.ptr()));
- QWidget * w = new QWidget(this);
- QGridLayout * g = new QGridLayout(w,2,1,4,8);
+ TQWidget * w = new TQWidget(this);
+ TQGridLayout * g = new TQGridLayout(w,2,1,4,8);
- QLabel * l = new QLabel(w);
- l->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
- l->setBackgroundColor(Qt::black);
- l->setAlignment(Qt::AlignCenter);
+ TQLabel * l = new TQLabel(w);
+ l->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
+ l->setBackgroundColor(TQt::black);
+ l->tqsetAlignment(TQt::AlignCenter);
l->setPixmap(pix);
g->addWidget(l,0,0);
- QString aboutString= "KVIrc <b>" KVI_VERSION " '" KVI_RELEASE_NAME "'</b><br>";
+ TQString aboutString= "KVIrc <b>" KVI_VERSION " '" KVI_RELEASE_NAME "'</b><br>";
aboutString += __tr2qs_ctx("Forged by the <b>KVIrc Development Team</b>","about");
aboutString += "<br>";
aboutString += __tr2qs_ctx("Sources date","about");
aboutString += ": ";
aboutString += KVI_SOURCES_DATE;
- l = new QLabel(aboutString,w);
- l->setAlignment(Qt::AlignCenter);
+ l = new TQLabel(aboutString,w);
+ l->tqsetAlignment(TQt::AlignCenter);
g->addWidget(l,1,0);
addTab(w,__tr2qs_ctx("About","about"));
- w = new QWidget(this);
- g = new QGridLayout(w,1,1,4,8);
+ w = new TQWidget(this);
+ g = new TQGridLayout(w,1,1,4,8);
KviTalTextEdit * v = new KviTalTextEdit(w);
v->setReadOnly(true);
@@ -119,17 +119,17 @@ KviAboutDialog::KviAboutDialog()
- w = new QWidget(this);
- g = new QGridLayout(w,1,1,4,8);
+ w = new TQWidget(this);
+ g = new TQGridLayout(w,1,1,4,8);
v = new KviTalTextEdit(w);
v->setReadOnly(true);
v->setWordWrap(KviTalTextEdit::NoWrap);
g->addWidget(v,0,0);
- QString szLicense;
+ TQString szLicense;
- QString szLicensePath;
+ TQString szLicensePath;
g_pApp->getGlobalKvircDirectory(szLicensePath,KviApp::License,"EULA");
if(!KviFileUtils::loadFile(szLicensePath,szLicense))
@@ -144,7 +144,7 @@ KviAboutDialog::KviAboutDialog()
addTab(w,__tr2qs_ctx("License","about"));
- connect(this,SIGNAL(applyButtonPressed()),this,SLOT(closeButtonPressed()));
+ connect(this,TQT_SIGNAL(applyButtonPressed()),this,TQT_SLOT(closeButtonPressed()));
}
KviAboutDialog::~KviAboutDialog()
@@ -152,7 +152,7 @@ KviAboutDialog::~KviAboutDialog()
g_pAboutDialog = 0;
}
-void KviAboutDialog::closeEvent(QCloseEvent *e)
+void KviAboutDialog::closeEvent(TQCloseEvent *e)
{
e->ignore();
delete this;
diff --git a/src/modules/about/aboutdialog.h b/src/modules/about/aboutdialog.h
index da543a19..4b748458 100644
--- a/src/modules/about/aboutdialog.h
+++ b/src/modules/about/aboutdialog.h
@@ -27,11 +27,12 @@
class KviAboutDialog : public KviTalTabDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
KviAboutDialog();
~KviAboutDialog();
protected:
- virtual void closeEvent(QCloseEvent *e);
+ virtual void closeEvent(TQCloseEvent *e);
protected slots:
void closeButtonPressed();
};