From 6c79210f31a937c25601b23ddb364982bf66bcc4 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Thu, 7 Jun 2018 16:28:45 +0300 Subject: [PATCH] [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 --- kstyle/breezestyle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 6aabd673..c18ca8af 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -3162,8 +3162,12 @@ namespace Breeze if( !frameOption ) return true; // no frame for flat groupboxes + #if BREEZE_USE_KDE4 QStyleOptionFrameV2 frameOption2( *frameOption ); if( frameOption2.features & QStyleOptionFrameV2::Flat ) return true; + #else + if( frameOption->features & QStyleOptionFrame::Flat ) return true; + #endif // normal frame const auto& palette( option->palette );