From e317fef60bcbc1bd51a5d758ee130e3eaa2f28b4 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 25 Sep 2008 15:51:01 +0000 Subject: finished porting of theme module to qt4 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2566 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/theme/libkvitheme.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/theme/libkvitheme.cpp') diff --git a/src/modules/theme/libkvitheme.cpp b/src/modules/theme/libkvitheme.cpp index 570ed8b00..ef8e4cd9a 100644 --- a/src/modules/theme/libkvitheme.cpp +++ b/src/modules/theme/libkvitheme.cpp @@ -60,8 +60,8 @@ QRect g_rectManagementDialogGeometry(0,0,0,0); static bool theme_kvs_cmd_install(KviKvsModuleCommandCall * c) { - QString szThemePackFile; - + QString szThemePackFile; + KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("package_path",KVS_PT_STRING,0,szThemePackFile) KVSM_PARAMETERS_END(c) @@ -94,8 +94,8 @@ static bool theme_kvs_cmd_install(KviKvsModuleCommandCall * c) static bool theme_kvs_cmd_screenshot(KviKvsModuleCommandCall * c) { - QString szFileName; - + QString szFileName; + KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("file_name_path",KVS_PT_STRING,KVS_PF_OPTIONAL,szFileName) KVSM_PARAMETERS_END(c) @@ -115,7 +115,7 @@ static bool theme_kvs_cmd_screenshot(KviKvsModuleCommandCall * c) if(szFileName.isEmpty())return true; // done KviFileUtils::adjustFilePath(szFileName); - if(QFileInfo(szFileName).extension(false)!="png") + if(QFileInfo(szFileName).suffix()!="png") szFileName+=".png"; QString szError; -- cgit v1.3.1-10-gc9f91