diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5236,7 +5236,11 @@ { // cast option and check + #if BREEZE_USE_KDE4 const auto frameOpt = qstyleoption_cast( option ); + #else + const auto frameOpt = qstyleoption_cast( option ); + #endif if( !frameOpt ) return false; switch( frameOpt->frameShape )