author | sandman <sandman> | 2002-10-04 00:41:19 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-04 00:41:19 (UTC) |
commit | 41e252c02eb10dcaa4622341f706b7817d6a70b2 (patch) (unidiff) | |
tree | 786be18c31413b7ab5ff52c38bbb3bcdfa3fa0c8 | |
parent | 0490713bb9cf600e14951195c58558e605063940 (diff) | |
download | opie-41e252c02eb10dcaa4622341f706b7817d6a70b2.zip opie-41e252c02eb10dcaa4622341f706b7817d6a70b2.tar.gz opie-41e252c02eb10dcaa4622341f706b7817d6a70b2.tar.bz2 |
- fixed a bug in style loading
- changed the config key format for styles
-rw-r--r-- | library/qpeapplication.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 533d7bd..e92b4dd 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp | |||
@@ -1221,3 +1221,8 @@ void QPEApplication::internalSetStyle( const QString &style ) | |||
1221 | QStyle *sty = 0; | 1221 | QStyle *sty = 0; |
1222 | QString path = QPEApplication::qpeDir ( ) + "/plugins/styles/lib" + style. lower ( ) + ".so"; | 1222 | QString path = QPEApplication::qpeDir ( ) + "/plugins/styles/"; |
1223 | |||
1224 | if ( style. find ( ".so" ) > 0 ) | ||
1225 | path += style; | ||
1226 | else | ||
1227 | path = path + "lib" + style. lower ( ) + ".so"; // compatibility | ||
1223 | 1228 | ||
@@ -1229,3 +1234,3 @@ void QPEApplication::internalSetStyle( const QString &style ) | |||
1229 | 1234 | ||
1230 | if ( lib-> queryInterface ( IID_Style, ( QUnknownInterface ** ) &iface ) == QS_OK ) | 1235 | if (( lib-> queryInterface ( IID_Style, ( QUnknownInterface ** ) &iface ) == QS_OK ) && iface ) |
1231 | sty = iface-> create ( ); | 1236 | sty = iface-> create ( ); |