diff options
| author | 2008-09-25 15:51:01 +0000 | |
|---|---|---|
| committer | 2008-09-25 15:51:01 +0000 | |
| commit | e317fef60bcbc1bd51a5d758ee130e3eaa2f28b4 (patch) | |
| tree | 51ddb05fbebfa6aace5d2be55f8502ed962eb615 /src/modules/theme/libkvitheme.cpp | |
| parent | ported trayicon module (diff) | |
| download | KVIrc-e317fef60bcbc1bd51a5d758ee130e3eaa2f28b4.tar.gz KVIrc-e317fef60bcbc1bd51a5d758ee130e3eaa2f28b4.tar.bz2 KVIrc-e317fef60bcbc1bd51a5d758ee130e3eaa2f28b4.zip | |
finished porting of theme module to qt4
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2566 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/libkvitheme.cpp')
| -rw-r--r-- | src/modules/theme/libkvitheme.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; |
