summaryrefslogtreecommitdiffstats
path: root/src/modules/theme/libkvitheme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/theme/libkvitheme.cpp')
-rw-r--r--src/modules/theme/libkvitheme.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/theme/libkvitheme.cpp b/src/modules/theme/libkvitheme.cpp
index cba1b4e8..c2b34f5b 100644
--- a/src/modules/theme/libkvitheme.cpp
+++ b/src/modules/theme/libkvitheme.cpp
@@ -40,9 +40,9 @@
#include "managementdialog.h"
#include "themefunctions.h"
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
-QRect g_rectManagementDialogGeometry(0,0,0,0);
+TQRect g_rectManagementDialogGeometry(0,0,0,0);
/*
@@ -61,13 +61,13 @@ QRect g_rectManagementDialogGeometry(0,0,0,0);
static bool theme_kvs_cmd_install(KviKvsModuleCommandCall * c)
{
- QString szThemePackFile;
+ TQString szThemePackFile;
KVSM_PARAMETERS_BEGIN(c)
KVSM_PARAMETER("package_path",KVS_PT_STRING,0,szThemePackFile)
KVSM_PARAMETERS_END(c)
- QString szError;
+ TQString szError;
if(!KviThemeFunctions::installThemePackage(szThemePackFile,szError))
{
c->error(__tr2qs_ctx("Error installing theme package: %Q","theme"),&szError);
@@ -95,7 +95,7 @@ static bool theme_kvs_cmd_install(KviKvsModuleCommandCall * c)
static bool theme_kvs_cmd_screenshot(KviKvsModuleCommandCall * c)
{
- QString szFileName;
+ TQString szFileName;
KVSM_PARAMETERS_BEGIN(c)
KVSM_PARAMETER("file_name_path",KVS_PT_STRING,KVS_PF_OPTIONAL,szFileName)
@@ -104,7 +104,7 @@ static bool theme_kvs_cmd_screenshot(KviKvsModuleCommandCall * c)
KviFileUtils::adjustFilePath(szFileName);
- QString szTmp;
+ TQString szTmp;
c->enterBlockingSection();
bool bResult = KviFileDialog::askForSaveFileName(szTmp,__tr2qs_ctx("Choose a file to save the screenshot to","theme"),szFileName,"*.png");
@@ -116,10 +116,10 @@ static bool theme_kvs_cmd_screenshot(KviKvsModuleCommandCall * c)
if(szFileName.isEmpty())return true; // done
KviFileUtils::adjustFilePath(szFileName);
- if(QFileInfo(szFileName).extension(false)!="png")
+ if(TQFileInfo(szFileName).extension(false)!="png")
szFileName+=".png";
- QString szError;
+ TQString szError;
if(!KviThemeFunctions::makeKVIrcScreenshot(szFileName))
{
c->error(__tr2qs_ctx("Error making screenshot","theme")); // FIXME: a nicer error ?
@@ -155,10 +155,10 @@ static bool theme_module_init(KviModule *m)
KVSM_REGISTER_SIMPLE_COMMAND(m,"install",theme_kvs_cmd_install);
KVSM_REGISTER_SIMPLE_COMMAND(m,"screenshot",theme_kvs_cmd_screenshot);
- QString szBuf;
+ TQString szBuf;
m->getDefaultConfigFileName(szBuf);
KviConfig cfg(szBuf,KviConfig::Read);
- g_rectManagementDialogGeometry = cfg.readRectEntry("EditorGeometry",QRect(10,10,390,440));
+ g_rectManagementDialogGeometry = cfg.readRectEntry("EditorGeometry",TQRect(10,10,390,440));
return true;
}
@@ -167,7 +167,7 @@ static bool theme_module_cleanup(KviModule *m)
{
KviThemeManagementDialog::cleanup();
- QString szBuf;
+ TQString szBuf;
m->getDefaultConfigFileName(szBuf);
KviConfig cfg(szBuf,KviConfig::Write);
cfg.writeEntry("EditorGeometry",g_rectManagementDialogGeometry);