From 34011b10b5c68df29336183d1d699a7ee241d9fd Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Thu, 7 Jun 2018 16:30:49 +0300 Subject: [PATCH] [kstyle] Drop QStyleOptionDockWidgetV2 in Qt 5 style plugin Reviewers: #breeze, hpereiradacosta Reviewed By: hpereiradacosta Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D12262 --- kstyle/breezestyle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 28746216..6aabd673 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5834,8 +5834,12 @@ namespace Breeze const bool reverseLayout( option->direction == Qt::RightToLeft ); // cast to v2 to check vertical bar + #if BREEZE_USE_KDE4 const auto v2 = qstyleoption_cast( option ); const bool verticalTitleBar( v2 ? v2->verticalTitleBar : false ); + #else + const bool verticalTitleBar( dockWidgetOption->verticalTitleBar ); + #endif const auto buttonRect( subElementRect( dockWidgetOption->floatable ? SE_DockWidgetFloatButton : SE_DockWidgetCloseButton, option, widget ) );