diff options
Diffstat (limited to 'lib/kofficecore/KoApplication.cpp')
-rw-r--r-- | lib/kofficecore/KoApplication.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/kofficecore/KoApplication.cpp b/lib/kofficecore/KoApplication.cpp index 3f2f6b23..2be62bbe 100644 --- a/lib/kofficecore/KoApplication.cpp +++ b/lib/kofficecore/KoApplication.cpp @@ -19,8 +19,8 @@ #include "KoApplication.h" #include <config.h> -#include <qfile.h> -#include <qregexp.h> +#include <tqfile.h> +#include <tqregexp.h> #include <dcopclient.h> #include <KoApplicationIface.h> #include <KoQueryTrader.h> @@ -106,9 +106,9 @@ bool KoApplication::start() int argsCount = args->count(); KCmdLineArgs *koargs = KCmdLineArgs::parsedArgs("koffice"); - QCString dpiValues = koargs->getOption( "dpi" ); + TQCString dpiValues = koargs->getOption( "dpi" ); if ( !dpiValues.isEmpty() ) { - int sep = dpiValues.find( QRegExp( "[x, ]" ) ); + int sep = dpiValues.tqfind( TQRegExp( "[x, ]" ) ); int dpiX; int dpiY = 0; bool ok = true; @@ -132,7 +132,7 @@ bool KoApplication::start() return false; KoMainWindow *shell = new KoMainWindow( doc->instance() ); shell->show(); - QObject::connect(doc, SIGNAL(sigProgress(int)), shell, SLOT(slotProgress(int))); + TQObject::connect(doc, TQT_SIGNAL(sigProgress(int)), shell, TQT_SLOT(slotProgress(int))); // for initDoc to fill in the recent docs list // and for KoDocument::slotStarted doc->addShell( shell ); @@ -144,7 +144,7 @@ bool KoApplication::start() } // FIXME This needs to be moved someplace else - QObject::disconnect(doc, SIGNAL(sigProgress(int)), shell, SLOT(slotProgress(int))); + TQObject::disconnect(doc, TQT_SIGNAL(sigProgress(int)), shell, TQT_SLOT(slotProgress(int))); } else { bool print = koargs->isSet("print"); bool doTemplate = koargs->isSet("template"); @@ -166,24 +166,24 @@ bool KoApplication::start() shell->show(); // are we just trying to open a template? if ( doTemplate ) { - QStringList paths; - if ( args->url(i).isLocalFile() && QFile::exists(args->url(i).path()) ) + TQStringList paths; + if ( args->url(i).isLocalFile() && TQFile::exists(args->url(i).path()) ) { - paths << QString(args->url(i).path()); + paths << TQString(args->url(i).path()); kdDebug(30003) << "using full path..." << endl; } else { - QString desktopName(args->arg(i)); - QString appName = KGlobal::instance()->instanceName(); + TQString desktopName(args->arg(i)); + TQString appName = KGlobal::instance()->instanceName(); paths = KGlobal::dirs()->findAllResources("data", appName +"/templates/*/" + desktopName ); if ( paths.isEmpty()) { paths = KGlobal::dirs()->findAllResources("data", appName +"/templates/" + desktopName ); } if ( paths.isEmpty()) { - KMessageBox::error(0L, i18n("No template found for: %1 ").arg(desktopName) ); + KMessageBox::error(0L, i18n("No template found for: %1 ").tqarg(desktopName) ); delete shell; } else if ( paths.count() > 1 ) { - KMessageBox::error(0L, i18n("Too many templates found for: %1").arg(desktopName) ); + KMessageBox::error(0L, i18n("Too many templates found for: %1").tqarg(desktopName) ); delete shell; } } @@ -193,7 +193,7 @@ bool KoApplication::start() templateBase.setPath(paths[0]); KDesktopFile templateInfo(paths[0]); - QString templateName = templateInfo.readURL(); + TQString templateName = templateInfo.readURL(); KURL templateURL; templateURL.setPath( templateBase.directory() + "/" + templateName ); if ( shell->openDocument(doc, templateURL )) { @@ -203,7 +203,7 @@ bool KoApplication::start() kdDebug(30003) << "Template loaded..." << endl; n++; } else { - KMessageBox::error(0L, i18n("Template %1 failed to load.").arg(templateURL.prettyURL()) ); + KMessageBox::error(0L, i18n("Template %1 failed to load.").tqarg(templateURL.prettyURL()) ); delete shell; } } |