diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-04-06 20:13:24 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-04-06 20:13:24 +0200 |
commit | 5d3112684ba2b692a07b0328ad308c402276e51e (patch) | |
tree | c5913723d0a9f0eb7624ff883c59bda5aa0deff5 /dominoConfig | |
parent | 0fc8bd091a374e11cf7b517e01ab0712161049d3 (diff) | |
download | tde-style-domino-5d3112684ba2b692a07b0328ad308c402276e51e.tar.gz tde-style-domino-5d3112684ba2b692a07b0328ad308c402276e51e.zip |
Fix using UTF-8 characters in the schema names
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'dominoConfig')
-rw-r--r-- | dominoConfig/dominoconf.cpp | 6 | ||||
-rw-r--r-- | dominoConfig/dominoconf.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dominoConfig/dominoconf.cpp b/dominoConfig/dominoconf.cpp index 056a745..d25e056 100644 --- a/dominoConfig/dominoconf.cpp +++ b/dominoConfig/dominoconf.cpp @@ -2013,7 +2013,7 @@ void DominoStyleConfig::tabPv9(int i) { tabBarBottom->repaint(false); } -void DominoStyleConfig::loadConfig(const char* name) { +void DominoStyleConfig::loadConfig(const QString &name) { QColor background = qApp->palette().active().background(); QColor button = qApp->palette().active().button(); @@ -2502,13 +2502,13 @@ void DominoStyleConfig::userLoadTabConfig() { ((DominoQTabWidget*)prevBottomTabWidget)->tabBar()->setUpdatesEnabled(true); } -void DominoStyleConfig::saveConfig(const char* fileName, const char* schemeName ) { +void DominoStyleConfig::saveConfig(const QString &fileName, const QString &schemeName ) { QString fName; QSettings s; int c; - if(!strcmp(fileName, "domino")) + if(fileName == "domino") fName = fileName; else fName = QString("domino_").append(fileName); diff --git a/dominoConfig/dominoconf.h b/dominoConfig/dominoconf.h index cac92b4..5f9915e 100644 --- a/dominoConfig/dominoconf.h +++ b/dominoConfig/dominoconf.h @@ -493,8 +493,8 @@ protected: DSurface* currentScrollBarSurface; DSurface* currentTabSurface; - void loadConfig(const char* name); - void saveConfig(const char* fileName, const char* schemeName); + void loadConfig(const QString &name); + void saveConfig(const QString &fileName, const QString &schemeName); void getConfigSchemes(); |