diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/about | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-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/about')
-rw-r--r-- | src/modules/about/aboutdialog.cpp | 46 | ||||
-rw-r--r-- | src/modules/about/aboutdialog.h | 3 |
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(); }; |