summaryrefslogtreecommitdiffstats
path: root/cervisia/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /cervisia/main.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/main.cpp')
-rw-r--r--cervisia/main.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/cervisia/main.cpp b/cervisia/main.cpp
index e8e6a505..9d6e181d 100644
--- a/cervisia/main.cpp
+++ b/cervisia/main.cpp
@@ -20,7 +20,7 @@
#include <iostream>
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kaboutdata.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
@@ -38,12 +38,12 @@
#include "version.h"
-static CvsService_stub* StartDCOPService(const QString& directory)
+static CvsService_stub* StartDCOPService(const TQString& directory)
{
// start the cvs DCOP service
- QString error;
- QCString appId;
- if( KApplication::startServiceByDesktopName("cvsservice", QStringList(),
+ TQString error;
+ TQCString appId;
+ if( KApplication::startServiceByDesktopName("cvsservice", TQStringList(),
&error, &appId) )
{
std::cerr << "Starting cvsservice failed with message: "
@@ -53,14 +53,14 @@ static CvsService_stub* StartDCOPService(const QString& directory)
DCOPRef repository(appId, "CvsRepository");
- repository.call("setWorkingCopy(QString)", directory);
+ repository.call("setWorkingCopy(TQString)", directory);
// create a reference to the service
return new CvsService_stub(appId, "CvsService");
}
-static int ShowResolveDialog(const QString& fileName)
+static int ShowResolveDialog(const TQString& fileName)
{
KConfig* config = new KConfig("cervisiapartrc");
@@ -79,15 +79,15 @@ static int ShowResolveDialog(const QString& fileName)
}
-static int ShowLogDialog(const QString& fileName)
+static int ShowLogDialog(const TQString& fileName)
{
KConfig* config = new KConfig("cervisiapartrc");
LogDialog* dlg = new LogDialog(*config);
kapp->setMainWidget(dlg);
// get directory for file
- const QFileInfo fi(fileName);
- QString directory = fi.dirPath(true);
+ const TQFileInfo fi(fileName);
+ TQString directory = fi.dirPath(true);
// start the cvs DCOP service
CvsService_stub* cvsService = StartDCOPService(directory);
@@ -109,15 +109,15 @@ static int ShowLogDialog(const QString& fileName)
}
-static int ShowAnnotateDialog(const QString& fileName)
+static int ShowAnnotateDialog(const TQString& fileName)
{
KConfig* config = new KConfig("cervisiapartrc");
AnnotateDialog* dlg = new AnnotateDialog(*config);
kapp->setMainWidget(dlg);
// get directory for file
- const QFileInfo fi(fileName);
- QString directory = fi.dirPath(true);
+ const TQFileInfo fi(fileName);
+ TQString directory = fi.dirPath(true);
// start the cvs DCOP service
CvsService_stub* cvsService = StartDCOPService(directory);
@@ -169,17 +169,17 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
KApplication app;
- QString resolvefile = KCmdLineArgs::parsedArgs()->getOption("resolve");
+ TQString resolvefile = KCmdLineArgs::parsedArgs()->getOption("resolve");
if (!resolvefile.isEmpty())
return ShowResolveDialog(resolvefile);
// is command line option 'show log dialog' specified?
- QString logFile = KCmdLineArgs::parsedArgs()->getOption("log");
+ TQString logFile = KCmdLineArgs::parsedArgs()->getOption("log");
if( !logFile.isEmpty() )
return ShowLogDialog(logFile);
// is command line option 'show annotation dialog' specified?
- QString annotateFile = KCmdLineArgs::parsedArgs()->getOption("annotate");
+ TQString annotateFile = KCmdLineArgs::parsedArgs()->getOption("annotate");
if( !annotateFile.isEmpty() )
return ShowAnnotateDialog(annotateFile);