diff options
author | Fritz Elfert <felfert@to.com> | 2002-07-07 13:30:59 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-07-07 13:30:59 +0000 |
commit | fcace9c7bfc47ad73839ead8f42050ffc972cd1d (patch) | |
tree | 8d911bdbb978c75ddd5765a0c85bbaa52f0938f8 /kde2/kpsion/statusbarprogress.cpp | |
parent | 3e81a7442d2e3e6fcc7d6ad2f4f4b7960dd09ecf (diff) | |
download | plptools-fcace9c7bfc47ad73839ead8f42050ffc972cd1d.tar.gz plptools-fcace9c7bfc47ad73839ead8f42050ffc972cd1d.tar.bz2 plptools-fcace9c7bfc47ad73839ead8f42050ffc972cd1d.zip |
- Adaptions to KDE3 and QT3
Diffstat (limited to 'kde2/kpsion/statusbarprogress.cpp')
-rw-r--r-- | kde2/kpsion/statusbarprogress.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/kde2/kpsion/statusbarprogress.cpp b/kde2/kpsion/statusbarprogress.cpp index 8449faa..0e97a7d 100644 --- a/kde2/kpsion/statusbarprogress.cpp +++ b/kde2/kpsion/statusbarprogress.cpp @@ -28,6 +28,7 @@ #include <qstring.h> #include <qpixmap.h> #include <qtooltip.h> +#include <qstyle.h> #include <kapp.h> #include <kglobal.h> @@ -230,16 +231,16 @@ styleChange(GUIStyle) { void KPsionStatusBarProgress:: adjustStyle(void) { - switch(style().guiStyle()) { - case WindowsStyle: - setFrameStyle(QFrame::NoFrame); - break; - - case MotifStyle: - default: - setFrameStyle(QFrame::Panel|QFrame::Sunken); - setLineWidth(1); - break; +#if (QT_VERSION < 300) + bool isWinStyle = (style().guiStyle() == WindowsStyle); +#else + bool isWinStyle = (style().styleHint(QStyle::SH_GUIStyle) == WindowsStyle); +#endif + if (isWinStyle) + setFrameStyle(QFrame::NoFrame); + else { + setFrameStyle(QFrame::Panel|QFrame::Sunken); + setLineWidth(1); } update(); } |