summaryrefslogtreecommitdiffstats
path: root/kdecore/kapplication_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/kapplication_win.cpp')
-rw-r--r--kdecore/kapplication_win.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kdecore/kapplication_win.cpp b/kdecore/kapplication_win.cpp
index dea2a3df1..abf0694b4 100644
--- a/kdecore/kapplication_win.cpp
+++ b/kdecore/kapplication_win.cpp
@@ -26,7 +26,7 @@
#include "kappdcopiface.h"
#include <qassistantclient.h>
-#include <qdir.h>
+#include <tqdir.h>
#include "windows.h"
#include "shellapi.h"
@@ -34,7 +34,7 @@
/**
* MS Windows-related actions for KApplication startup.
*
- * - Use Qt translation which will be usable for QFileDialog
+ * - Use Qt translation which will be usable for TQFileDialog
* and other Qt-only GUIs. The "qt_<language>.qm" file should be stored
* in the same place as .po files for a given language.
*
@@ -42,7 +42,7 @@
*/
void KApplication_init_windows(bool /*GUIenabled*/)
{
- QString qt_transl_file = ::locate( "locale", KGlobal::locale()->language()
+ TQString qt_transl_file = ::locate( "locale", KGlobal::locale()->language()
+ "/LC_MESSAGES/qt_" + KGlobal::locale()->language() + ".qm" );
QTranslator *qt_transl = new QTranslator();
if (qt_transl->load( qt_transl_file, ""))
@@ -65,24 +65,24 @@ public:
int refCount;
IceIOErrorHandler oldIceIOErrorHandler;
KCheckAccelerators* checkAccelerators;
- QString overrideStyle;
- QString geometry_arg;
- QCString startup_id;
- QTimer* app_started_timer;
+ TQString overrideStyle;
+ TQString geometry_arg;
+ TQCString startup_id;
+ TQTimer* app_started_timer;
KAppDCOPInterface *m_KAppDCOPInterface;
bool session_save;
QAssistantClient* qassistantclient;
};
-void KApplication::invokeHelp( const QString& anchor,
- const QString& _appname, const QCString& startup_id ) const
+void KApplication::invokeHelp( const TQString& anchor,
+ const TQString& _appname, const TQCString& startup_id ) const
{
if (!d->qassistantclient) {
d->qassistantclient = new QAssistantClient(
KStandardDirs::findExe( "assistant" ), 0);
- QStringList args;
+ TQStringList args;
args << "-profile";
- args << QDir::convertSeparators( locate("html", QString(name())+"/"+QString(name())+".adp") );
+ args << TQDir::convertSeparators( locate("html", TQString(name())+"/"+TQString(name())+".adp") );
d->qassistantclient->setArguments(args);
}
d->qassistantclient->openAssistant();
@@ -90,27 +90,27 @@ void KApplication::invokeHelp( const QString& anchor,
// on win32, for invoking browser we're using win32 API
// see kapplication_win.cpp
-void KApplication::invokeBrowser( const QString &url, const QCString& startup_id )
+void KApplication::invokeBrowser( const TQString &url, const TQCString& startup_id )
{
- QCString s = url.latin1();
+ TQCString s = url.latin1();
const unsigned short *l = (const unsigned short *)s.data();
ShellExecuteA(0, "open", s.data(), 0, 0, SW_NORMAL);
}
-void KApplication::invokeMailer(const QString &to, const QString &cc, const QString &bcc,
- const QString &subject, const QString &body,
- const QString & /*messageFile TODO*/, const QStringList &attachURLs,
- const QCString& startup_id )
+void KApplication::invokeMailer(const TQString &to, const TQString &cc, const TQString &bcc,
+ const TQString &subject, const TQString &body,
+ const TQString & /*messageFile TODO*/, const TQStringList &attachURLs,
+ const TQCString& startup_id )
{
KURL url("mailto:"+to);
url.setQuery("?subject="+subject);
url.addQueryItem("cc", cc);
url.addQueryItem("bcc", bcc);
url.addQueryItem("body", body);
- for (QStringList::ConstIterator it = attachURLs.constBegin(); it != attachURLs.constEnd(); ++it)
+ for (TQStringList::ConstIterator it = attachURLs.constBegin(); it != attachURLs.constEnd(); ++it)
url.addQueryItem("attach", KURL::encode_string(*it));
- QCString s = url.url().latin1();
+ TQCString s = url.url().latin1();
const unsigned short *l = (const unsigned short *)s.data();
ShellExecuteA(0, "open", s.data(), 0, 0, SW_NORMAL);
}