diff options
author | Mavridis Philippe <[email protected]> | 2024-03-10 21:37:49 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-03-10 21:37:49 +0200 |
commit | 1e1d6770409947fd00314c3810afbb23c7679fd2 (patch) | |
tree | a4d37eef2150964ee1679d386cf150e534c81700 /style/config/polyesterconf.cpp | |
parent | fb37c54a9eaac86a3d8be09ee460eab0a0902d26 (diff) | |
download | tde-style-polyester-1e1d6770409947fd00314c3810afbb23c7679fd2.tar.gz tde-style-polyester-1e1d6770409947fd00314c3810afbb23c7679fd2.zip |
Port to new Style API
I still wonder how it is different from the old approach or where to find the
appropriate docs...
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'style/config/polyesterconf.cpp')
-rwxr-xr-x | style/config/polyesterconf.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/style/config/polyesterconf.cpp b/style/config/polyesterconf.cpp index 04215dd..e11661f 100755 --- a/style/config/polyesterconf.cpp +++ b/style/config/polyesterconf.cpp @@ -46,7 +46,7 @@ DEALINGS IN THE SOFTWARE. extern "C" { - KDE_EXPORT TQWidget* allocate_kstyle_config(TQWidget* parent) + KDE_EXPORT TQWidget* allocate_tdestyle_config(TQWidget* parent) { TDEGlobal::locale()->insertCatalogue("polyester"); return new PolyesterStyleConfig(parent); @@ -352,11 +352,11 @@ TQString PolyesterStyleConfig::buttonType( int listnr ) int PolyesterStyleConfig::buttonItem( TQString kBType ) { - if( !strcmp(kBType,"gradients") ) + if( kBType == "gradients" ) return 1; - else if( !strcmp(kBType,"reverseGradients") ) + else if( kBType == "reverseGradients") return 2; - else if( !strcmp(kBType,"flat") ) + else if( kBType == "flat") return 3; else return 0; @@ -379,11 +379,11 @@ TQString PolyesterStyleConfig::scrollBarType( int listnr ) int PolyesterStyleConfig::scrollBarItem( TQString kSType ) { - if( !strcmp(kSType,"PlatinumStyleScrollBar") ) + if( kSType == "PlatinumStyleScrollBar") return 1; - else if( !strcmp(kSType,"NextStyleScrollBar") ) + else if( kSType == "NextStyleScrollBar") return 2; - else if( !strcmp(kSType,"WindowsStyleScrollBar") ) + else if( kSType == "WindowsStyleScrollBar") return 3; else return 0; |