diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5231,7 +5231,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 )