summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kernel/kvi_app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/kernel/kvi_app.cpp')
-rw-r--r--src/kvirc/kernel/kvi_app.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/kvirc/kernel/kvi_app.cpp b/src/kvirc/kernel/kvi_app.cpp
index ad1772c9..30f26dc5 100644
--- a/src/kvirc/kernel/kvi_app.cpp
+++ b/src/kvirc/kernel/kvi_app.cpp
@@ -94,9 +94,9 @@
#include <tq3mimefactory.h>
#endif
#include "kvi_tal_listbox.h"
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqmessagebox.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqmetaobject.h>
#ifdef COMPILE_SSL_SUPPORT
@@ -112,7 +112,7 @@
#ifdef COMPILE_USE_QT4
#include <TQTextDocument>
#else
- #include <stylesheet.h>
+ #include <tqstylesheet.h>
#endif
KVIRC_API KviApp * g_pApp = 0; // global application pointer
@@ -228,7 +228,7 @@ void KviApp::setup()
//need to load image plugins:(
TQString szPluginsDir;
getGlobalKvircDirectory(szPluginsDir,None,"qt-plugins/");
- setLibraryPaths(TQStringList(szPluginsDir));
+ tqsetLibraryPaths(TQStringList(szPluginsDir));
//KviMessageBox::information(libraryPaths().join(";"));
//debug("%1",loader.isLoaded());
#endif
@@ -696,11 +696,11 @@ void KviApp::contextSensitiveHelp()
#ifndef COMPILE_USE_QT4
// the F1 Key has been pressed
// try to pass it to the active widget or one of its parents
- TQWidget * w = g_pApp->focusWidget();
+ TQWidget * w = g_pApp->tqfocusWidget();
while(w)
{
//TQVariant v = w->property("contextSensitiveHelp"); <-- this prints a lot of warnings: this is a QT BUG
- TQMetaObject * o = w->metaObject();
+ TQMetaObject * o = w->tqmetaObject();
if(o)
{
int i = o->findProperty("contextSensitiveHelp",true);
@@ -916,8 +916,8 @@ TQString KviApp::getClipboardText()
return buffer;
*/
- TQString buffer = clipboard()->text(TQClipboard::Clipboard);
- if(buffer.isEmpty())return clipboard()->text(TQClipboard::Selection);
+ TQString buffer = tqclipboard()->text(TQClipboard::Clipboard);
+ if(buffer.isEmpty())return tqclipboard()->text(TQClipboard::Selection);
return buffer;
}
@@ -945,8 +945,8 @@ void KviApp::setClipboardText(const TQString &str)
#if [[[TQT_VERSION IS DEPRECATED]]] >= 300
}
#endif*/
- clipboard()->setText(str,TQClipboard::Clipboard);
- clipboard()->setText(str,TQClipboard::Selection);
+ tqclipboard()->setText(str,TQClipboard::Clipboard);
+ tqclipboard()->setText(str,TQClipboard::Selection);
}
void KviApp::setClipboardText(const KviStr &str)
@@ -1038,7 +1038,7 @@ void KviApp::fileDownloadTerminated(bool bSuccess,const TQString &szRemoteUrl,co
if(szNick.isEmpty())
szMsg = __tr2qs("File download failed");
else
- szMsg = __tr2qs("File download from %1 failed").arg(szNick);
+ szMsg = __tr2qs("File download from %1 failed").tqarg(szNick);
szMsg += ": ";
szMsg += szError;
szMsg += " (";
@@ -1049,7 +1049,7 @@ void KviApp::fileDownloadTerminated(bool bSuccess,const TQString &szRemoteUrl,co
if(szNick.isEmpty())
szMsg = __tr2qs("File download successfully complete");
else
- szMsg = __tr2qs("File download from %1 successfully complete").arg(szNick);
+ szMsg = __tr2qs("File download from %1 successfully complete").tqarg(szNick);
szMsg += " (";
szMsg += szLocalFileName;
szMsg += ")";
@@ -1117,7 +1117,7 @@ void KviApp::fileDownloadTerminated(bool bSuccess,const TQString &szRemoteUrl,co
#endif
rinfo.activate();
- TQString name = TQString("DESKTOP%1").arg(rinfo.currentDesktop());
+ TQString name = TQString("DESKTOP%1").tqarg(rinfo.currentDesktop());
g_pKdeDesktopBackground = new KSharedPixmap();
connect(g_pKdeDesktopBackground,TQT_SIGNAL(done(bool)),this,TQT_SLOT(kdeRootPixmapDownloadComplete(bool)));
@@ -1141,7 +1141,7 @@ void KviApp::fileDownloadTerminated(bool bSuccess,const TQString &szRemoteUrl,co
return;
}
- if(!g_pKdeDesktopBackground->loadFromShared(TQString("DESKTOP%1").arg(rinfo.currentDesktop())))
+ if(!g_pKdeDesktopBackground->loadFromShared(TQString("DESKTOP%1").tqarg(rinfo.currentDesktop())))
{
debug("Can't load the KDE root background image...");
delete g_pKdeDesktopBackground;
@@ -1368,7 +1368,7 @@ void KviApp::updateApplicationFont()
if(KVI_OPTION_BOOL(KviOption_boolUseGlobalApplicationFont))
{
if(font() != KVI_OPTION_FONT(KviOption_fontApplication))
- setFont(KVI_OPTION_FONT(KviOption_fontApplication),true);
+ tqsetFont(KVI_OPTION_FONT(KviOption_fontApplication),true);
}
// FIXME: #warning "And what if this option is turned off ?...a reboot only"
}