Commit 34011b10 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[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
parent 47ca4e81
......@@ -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<const QStyleOptionDockWidgetV2*>( 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 ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment