From 0a80cfd57d271dd44221467efb426675fa470356 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 18:31:12 +0000 Subject: 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 --- src/modules/about/aboutdialog.cpp | 46 +++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/modules/about/aboutdialog.cpp') 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 -#include +#include +#include #include -#include -#include -#include +#include +#include +#include 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 " KVI_VERSION " '" KVI_RELEASE_NAME "'
"; + TQString aboutString= "KVIrc " KVI_VERSION " '" KVI_RELEASE_NAME "'
"; aboutString += __tr2qs_ctx("Forged by the KVIrc Development Team","about"); aboutString += "
"; 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; -- cgit v1.2.1