From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- vcs/cvsservice/integrator/Makefile.am | 2 +- vcs/cvsservice/integrator/cvsserviceintegrator.cpp | 10 +++--- vcs/cvsservice/integrator/cvsserviceintegrator.h | 7 +++-- vcs/cvsservice/integrator/fetcherdlgbase.ui | 20 ++++++------ vcs/cvsservice/integrator/initdlg.ui | 8 ++--- vcs/cvsservice/integrator/integratordlg.cpp | 14 ++++----- vcs/cvsservice/integrator/integratordlg.h | 3 +- vcs/cvsservice/integrator/integratordlgbase.ui | 36 +++++++++++----------- 8 files changed, 51 insertions(+), 49 deletions(-) (limited to 'vcs/cvsservice/integrator') diff --git a/vcs/cvsservice/integrator/Makefile.am b/vcs/cvsservice/integrator/Makefile.am index 7768aad5..fd1d6922 100644 --- a/vcs/cvsservice/integrator/Makefile.am +++ b/vcs/cvsservice/integrator/Makefile.am @@ -1,6 +1,6 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces \ -I$(top_srcdir)/lib/interfaces/extensions -I$(top_srcdir)/lib/interfaces/extras -I$(top_srcdir)/lib/util \ - $(all_includes) + $(all_includes) -I$(kde_includes)/kde METASOURCES = AUTO kde_module_LTLIBRARIES = libcvsserviceintegrator.la libcvsserviceintegrator_la_LDFLAGS = -avoid-version -no-undefined $(all_libraries) diff --git a/vcs/cvsservice/integrator/cvsserviceintegrator.cpp b/vcs/cvsservice/integrator/cvsserviceintegrator.cpp index 1bbc3b11..13cc370e 100644 --- a/vcs/cvsservice/integrator/cvsserviceintegrator.cpp +++ b/vcs/cvsservice/integrator/cvsserviceintegrator.cpp @@ -28,9 +28,9 @@ static const KDevPluginInfo data("kdevcvsserviceintegrator"); typedef KDevGenericFactory CVSIntegratorFactory; K_EXPORT_COMPONENT_FACTORY( libcvsserviceintegrator, CVSIntegratorFactory(data) ) -CVSServiceIntegrator::CVSServiceIntegrator(TQObject* parent, const char* name, +CVSServiceIntegrator::CVSServiceIntegrator(TQObject* tqparent, const char* name, const TQStringList args) - :KDevVCSIntegrator(parent, name) + :KDevVCSIntegrator(tqparent, name) { } @@ -38,14 +38,14 @@ CVSServiceIntegrator::~CVSServiceIntegrator( ) { } -VCSDialog* CVSServiceIntegrator::fetcher(TQWidget* parent) +VCSDialog* CVSServiceIntegrator::fetcher(TQWidget* tqparent) { return 0; } -VCSDialog* CVSServiceIntegrator::integrator(TQWidget* parent) +VCSDialog* CVSServiceIntegrator::integrator(TQWidget* tqparent) { - IntegratorDlg *dlg = new IntegratorDlg(this, parent); + IntegratorDlg *dlg = new IntegratorDlg(this, tqparent); return dlg; } diff --git a/vcs/cvsservice/integrator/cvsserviceintegrator.h b/vcs/cvsservice/integrator/cvsserviceintegrator.h index c02547a4..02c94430 100644 --- a/vcs/cvsservice/integrator/cvsserviceintegrator.h +++ b/vcs/cvsservice/integrator/cvsserviceintegrator.h @@ -26,12 +26,13 @@ class CVSServiceIntegrator: public KDevVCSIntegrator { Q_OBJECT + TQ_OBJECT public: - CVSServiceIntegrator(TQObject* parent, const char* name, const TQStringList args = TQStringList()); + CVSServiceIntegrator(TQObject* tqparent, const char* name, const TQStringList args = TQStringList()); virtual ~CVSServiceIntegrator(); - virtual VCSDialog* fetcher(TQWidget* parent); - virtual VCSDialog* integrator(TQWidget* parent); + virtual VCSDialog* fetcher(TQWidget* tqparent); + virtual VCSDialog* integrator(TQWidget* tqparent); }; diff --git a/vcs/cvsservice/integrator/fetcherdlgbase.ui b/vcs/cvsservice/integrator/fetcherdlgbase.ui index be0556c2..caf30c0d 100644 --- a/vcs/cvsservice/integrator/fetcherdlgbase.ui +++ b/vcs/cvsservice/integrator/fetcherdlgbase.ui @@ -1,6 +1,6 @@ FetcherDlgBase - + FetcherDlgBase @@ -19,7 +19,7 @@ unnamed - + module @@ -35,7 +35,7 @@ true - + textLabel1_2_2 @@ -54,7 +54,7 @@ comboBox5 - + textLabel1 @@ -73,7 +73,7 @@ repository - + repository @@ -81,7 +81,7 @@ true - + pushButton2 @@ -97,7 +97,7 @@ Fetch &List - + textLabel1_2 @@ -116,7 +116,7 @@ module - + comboBox5 @@ -134,7 +134,7 @@ Expanding - + 20 16 @@ -149,5 +149,5 @@ pushButton2 comboBox5 - + diff --git a/vcs/cvsservice/integrator/initdlg.ui b/vcs/cvsservice/integrator/initdlg.ui index 1b36ecfb..c4d0cc4a 100644 --- a/vcs/cvsservice/integrator/initdlg.ui +++ b/vcs/cvsservice/integrator/initdlg.ui @@ -1,6 +1,6 @@ InitDlg - + InitDlg @@ -19,7 +19,7 @@ unnamed - + textLabel1_2_2_2 @@ -53,7 +53,7 @@ Expanding - + 20 16 @@ -62,7 +62,7 @@ - + kurlrequester.h klineedit.h diff --git a/vcs/cvsservice/integrator/integratordlg.cpp b/vcs/cvsservice/integrator/integratordlg.cpp index 32184c45..3561f7ad 100644 --- a/vcs/cvsservice/integrator/integratordlg.cpp +++ b/vcs/cvsservice/integrator/integratordlg.cpp @@ -40,8 +40,8 @@ #include "initdlg.h" -IntegratorDlg::IntegratorDlg(CVSServiceIntegrator *integrator, TQWidget *parent, const char *name) - :IntegratorDlgBase(parent, name), m_integrator(integrator) +IntegratorDlg::IntegratorDlg(CVSServiceIntegrator *integrator, TQWidget *tqparent, const char *name) + :IntegratorDlgBase(tqparent, name), m_integrator(integrator) { TQFile cvspass(TQDir::homeDirPath() + "/.cvspass"); if (cvspass.open(IO_ReadOnly)) @@ -81,11 +81,11 @@ void IntegratorDlg::init_clicked() if (!proc->normalExit()) KMessageBox::error(this, i18n("cvs init did not exit normally. Please check if cvs is installed and works correctly."), i18n("Init CVS Repository")); else if (proc->exitStatus() != 0) - KMessageBox::error(this, i18n("cvs init exited with status %1. Please check if the cvs location is correct.").arg(proc->exitStatus()), i18n("Init CVS Repository")); + KMessageBox::error(this, i18n("cvs init exited with status %1. Please check if the cvs location is correct.").tqarg(proc->exitStatus()), i18n("Init CVS Repository")); else { - repository->insertItem(TQString(":local:%1").arg(url)); - repository->setCurrentText(TQString(":local:%1").arg(url)); + repository->insertItem(TQString(":local:%1").tqarg(url)); + repository->setCurrentText(TQString(":local:%1").tqarg(url)); } } } @@ -122,13 +122,13 @@ void IntegratorDlg::accept() proc->setWorkingDirectory(m_projectLocation); *proc << "cvs"; *proc << "-d" << repository->currentText() << "import" - << "-m" << TQString("\"%1\"").arg(comment->text()) << module->text() + << "-m" << TQString("\"%1\"").tqarg(comment->text()) << module->text() << vendorTag->text() << releaseTag->text(); proc->start(KProcess::Block); if (!proc->normalExit()) KMessageBox::error(this, i18n("cvs import did not exit normally. Please check if cvs is installed and works correctly."), i18n("Init CVS Repository")); else if (proc->exitStatus() != 0) - KMessageBox::error(this, i18n("cvs import exited with status %1. Please check if the cvs location is correct.").arg(proc->exitStatus()), i18n("Init CVS Repository")); + KMessageBox::error(this, i18n("cvs import exited with status %1. Please check if the cvs location is correct.").tqarg(proc->exitStatus()), i18n("Init CVS Repository")); else { kdDebug() << "Project is in: " << m_projectLocation << endl; diff --git a/vcs/cvsservice/integrator/integratordlg.h b/vcs/cvsservice/integrator/integratordlg.h index 5a9ab3a8..72ae30fd 100644 --- a/vcs/cvsservice/integrator/integratordlg.h +++ b/vcs/cvsservice/integrator/integratordlg.h @@ -27,8 +27,9 @@ class TQDomDocument; class IntegratorDlg: public IntegratorDlgBase, public VCSDialog { Q_OBJECT + TQ_OBJECT public: - IntegratorDlg(CVSServiceIntegrator *integrator, TQWidget *parent = 0, const char *name = 0); + IntegratorDlg(CVSServiceIntegrator *integrator, TQWidget *tqparent = 0, const char *name = 0); virtual TQWidget *self(); virtual void init(const TQString &projectName, const TQString &projectLocation); diff --git a/vcs/cvsservice/integrator/integratordlgbase.ui b/vcs/cvsservice/integrator/integratordlgbase.ui index e17f44e1..a20b7a75 100644 --- a/vcs/cvsservice/integrator/integratordlgbase.ui +++ b/vcs/cvsservice/integrator/integratordlgbase.ui @@ -1,6 +1,6 @@ IntegratorDlgBase - + IntegratorDlgBase @@ -19,7 +19,7 @@ 0 - + createModule @@ -27,9 +27,9 @@ Create module in the repository - + - layout1 + tqlayout1 @@ -46,7 +46,7 @@ vendor - + init @@ -60,7 +60,7 @@ false - + repository @@ -79,7 +79,7 @@ true - + login @@ -103,7 +103,7 @@ Expanding - + 40 20 @@ -120,7 +120,7 @@ Expanding - + 20 16 @@ -135,7 +135,7 @@ false - + moduleLabel @@ -157,7 +157,7 @@ module - + vendorLabel @@ -179,7 +179,7 @@ vendorTag - + releaseLabel @@ -201,7 +201,7 @@ releaseTag - + commentLabel @@ -223,7 +223,7 @@ comment - + repositoryLabel @@ -279,7 +279,7 @@ Fixed - + 16 20 @@ -389,10 +389,10 @@ login init - + init_clicked() login_clicked() createModule_clicked() - - + + -- cgit v1.2.1