diff --git a/src/qtcurve/style/blurhelper.cpp b/src/qtcurve/style/blurhelper.cpp index b658d9ab6f..1bfdfc2f82 100644 --- a/src/qtcurve/style/blurhelper.cpp +++ b/src/qtcurve/style/blurhelper.cpp @@ -209,6 +209,9 @@ namespace QtCurve // force update if( widget->isVisible() ) { widget->update(); } + + #else + Q_UNUSED(widget); #endif @@ -220,6 +223,8 @@ namespace QtCurve { #ifdef Q_WS_X11 XChangeProperty( QX11Info::display(), widget->winId(), _atom, XA_CARDINAL, 32, PropModeReplace, 0, 0 ); + #else + Q_UNUSED(widget); #endif } diff --git a/src/qtcurve/style/qtcurve.cpp b/src/qtcurve/style/qtcurve.cpp index d5afb529e8..dcb24f00f1 100644 --- a/src/qtcurve/style/qtcurve.cpp +++ b/src/qtcurve/style/qtcurve.cpp @@ -731,6 +731,7 @@ inline int numButtons(EScrollbar type) case SCROLLBAR_NONE: return 0; } + return 2; } static inline void drawRect(QPainter *p, const QRect &r) @@ -963,7 +964,7 @@ Style::Style() itsAnimateStep(0), itsTitlebarHeight(0), calibre_icon_map(QHash()), - is_kde_session(False), + is_kde_session(0), itsPos(-1, -1), itsHoverWidget(0L), #ifdef Q_WS_X11 @@ -978,7 +979,9 @@ Style::Style() , itsName(name) #endif { +#if !defined(_WIN32) && !defined(__APPLE__) is_kde_session = (getenv("KDE_FULL_SESSION") != NULL); +#endif const char *env=getenv(QTCURVE_PREVIEW_CONFIG); if(env && 0==strcmp(env, QTCURVE_PREVIEW_CONFIG)) { diff --git a/src/qtcurve/style/utils.cpp b/src/qtcurve/style/utils.cpp index cc3b84f7b7..7f2cae9266 100644 --- a/src/qtcurve/style/utils.cpp +++ b/src/qtcurve/style/utils.cpp @@ -74,6 +74,7 @@ namespace QtCurve else return false; #else + Q_UNUSED(widget); return compositingActive(); #endif } diff --git a/src/qtcurve/style/windowmanager.cpp b/src/qtcurve/style/windowmanager.cpp index cc03d3a239..4a1e6113e0 100644 --- a/src/qtcurve/style/windowmanager.cpp +++ b/src/qtcurve/style/windowmanager.cpp @@ -680,6 +680,8 @@ namespace QtCurve NETRootInfo rootInfo(QX11Info::display(), NET::WMMoveResize); rootInfo.moveResizeRequest( widget->window()->winId(), position.x(), position.y(), NET::Move); #endif // QTC_QT_ONLY + #else + Q_UNUSED(position); #endif }