From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kate/app/kateapp.cpp | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kate/app/kateapp.cpp') diff --git a/kate/app/kateapp.cpp b/kate/app/kateapp.cpp index 00b58b8b5..70c81d465 100644 --- a/kate/app/kateapp.cpp +++ b/kate/app/kateapp.cpp @@ -42,10 +42,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -81,7 +81,7 @@ KateApp::KateApp (KCmdLineArgs *args) m_obj = new KateAppDCOPIface (this); kdDebug()<<"Setting KATE_PID: '"<setGroup("General"); - QString lastSession (sessionConfig()->readEntry ("Last Session", "default.katesession")); + TQString lastSession (sessionConfig()->readEntry ("Last Session", "default.katesession")); sessionManager()->activateSession (new KateSession (sessionManager(), lastSession, ""), false, false, false); m_docManager->restoreDocumentList (sessionConfig()); @@ -151,7 +151,7 @@ void KateApp::restoreKate () // restore all windows ;) for (int n=1; KMainWindow::canBeRestored(n); n++) - newMainWindow(sessionConfig(), QString ("%1").arg(n)); + newMainWindow(sessionConfig(), TQString ("%1").arg(n)); // oh, no mainwindow, create one, should not happen, but make sure ;) if (mainWindows() == 0) @@ -166,7 +166,7 @@ bool KateApp::startupKate () // user specified session to open if (m_args->isSet ("start")) { - sessionManager()->activateSession (sessionManager()->giveSession (QString::fromLocal8Bit(m_args->getOption("start"))), false, false); + sessionManager()->activateSession (sessionManager()->giveSession (TQString::fromLocal8Bit(m_args->getOption("start"))), false, false); } else { @@ -186,7 +186,7 @@ bool KateApp::startupKate () // notify about start KStartupInfo::setNewStartupId( activeMainWindow(), startupId()); - QTextCodec *codec = m_args->isSet("encoding") ? QTextCodec::codecForName(m_args->getOption("encoding")) : 0; + TQTextCodec *codec = m_args->isSet("encoding") ? TQTextCodec::codecForName(m_args->getOption("encoding")) : 0; bool tempfileSet = KCmdLineArgs::isTempFileSet(); @@ -195,7 +195,7 @@ bool KateApp::startupKate () for (int z=0; zcount(); z++) { // this file is no local dir, open it, else warn - bool noDir = !m_args->url(z).isLocalFile() || !QDir (m_args->url(z).path()).exists(); + bool noDir = !m_args->url(z).isLocalFile() || !TQDir (m_args->url(z).path()).exists(); if (noDir) { @@ -203,7 +203,7 @@ bool KateApp::startupKate () if (codec) id = activeMainWindow()->viewManager()->openURL( m_args->url(z), codec->name(), false, tempfileSet ); else - id = activeMainWindow()->viewManager()->openURL( m_args->url(z), QString::null, false, tempfileSet ); + id = activeMainWindow()->viewManager()->openURL( m_args->url(z), TQString::null, false, tempfileSet ); } else KMessageBox::sorry( activeMainWindow(), @@ -215,14 +215,14 @@ bool KateApp::startupKate () // handle stdin input if( m_args->isSet( "stdin" ) ) { - QTextIStream input(stdin); + TQTextIStream input(stdin); // set chosen codec if (codec) input.setCodec (codec); - QString line; - QString text; + TQString line; + TQString text; do { @@ -295,19 +295,19 @@ KateSessionManager *KateApp::sessionManager () return m_sessionManager; } -bool KateApp::openURL (const KURL &url, const QString &encoding, bool isTempFile) +bool KateApp::openURL (const KURL &url, const TQString &encoding, bool isTempFile) { KateMainWindow *mainWindow = activeMainWindow (); if (!mainWindow) return false; - QTextCodec *codec = encoding.isEmpty() ? 0 : QTextCodec::codecForName(encoding.latin1()); + TQTextCodec *codec = encoding.isEmpty() ? 0 : TQTextCodec::codecForName(encoding.latin1()); kdDebug () << "OPEN URL "<< encoding << endl; // this file is no local dir, open it, else warn - bool noDir = !url.isLocalFile() || !QDir (url.path()).exists(); + bool noDir = !url.isLocalFile() || !TQDir (url.path()).exists(); if (noDir) { @@ -315,7 +315,7 @@ bool KateApp::openURL (const KURL &url, const QString &encoding, bool isTempFile if (codec) mainWindow->viewManager()->openURL( url, codec->name(), true, isTempFile ); else - mainWindow->viewManager()->openURL( url, QString::null, true, isTempFile ); + mainWindow->viewManager()->openURL( url, TQString::null, true, isTempFile ); } else KMessageBox::sorry( mainWindow, @@ -336,7 +336,7 @@ bool KateApp::setCursor (int line, int column) return true; } -bool KateApp::openInput (const QString &text) +bool KateApp::openInput (const TQString &text) { activeMainWindow()->viewManager()->openURL( "", "", true ); @@ -348,7 +348,7 @@ bool KateApp::openInput (const QString &text) return true; } -KateMainWindow *KateApp::newMainWindow (KConfig *sconfig, const QString &sgroup) +KateMainWindow *KateApp::newMainWindow (KConfig *sconfig, const TQString &sgroup) { KateMainWindow *mainWindow = new KateMainWindow (sconfig, sgroup); m_mainWindows.push_back (mainWindow); -- cgit v1.2.1