[kstyle] Drop QStyleOptionFrameV2 in Qt 5 style plugin

Reviewers: #breeze, hpereiradacosta

Reviewed By: hpereiradacosta

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D12260
wilder-5.17
Vlad Zagorodniy 8 years ago
parent 34011b10b5
commit 6c79210f31
  1. 4
      kstyle/breezestyle.cpp

@ -3162,8 +3162,12 @@ namespace Breeze
if( !frameOption ) return true; if( !frameOption ) return true;
// no frame for flat groupboxes // no frame for flat groupboxes
#if BREEZE_USE_KDE4
QStyleOptionFrameV2 frameOption2( *frameOption ); QStyleOptionFrameV2 frameOption2( *frameOption );
if( frameOption2.features & QStyleOptionFrameV2::Flat ) return true; if( frameOption2.features & QStyleOptionFrameV2::Flat ) return true;
#else
if( frameOption->features & QStyleOptionFrame::Flat ) return true;
#endif
// normal frame // normal frame
const auto& palette( option->palette ); const auto& palette( option->palette );

Loading…
Cancel
Save