diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -3224,7 +3224,11 @@ { // cast option and check + #if BREEZE_USE_KDE4 const auto tabOption( qstyleoption_cast( option ) ); + #else + const auto tabOption( qstyleoption_cast( option ) ); + #endif if( !tabOption ) return true; // do nothing if tabbar is hidden