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

[kstyle] Drop QStyleOptionDockWidgetV2 in Qt 5 style plugin

Reviewers: #breeze, hpereiradacosta

Reviewed By: hpereiradacosta

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 47ca4e81
......@@ -5834,8 +5834,12 @@ namespace Breeze
const bool reverseLayout( option->direction == Qt::RightToLeft );
// cast to v2 to check vertical bar
const auto v2 = qstyleoption_cast<const QStyleOptionDockWidgetV2*>( option );
const bool verticalTitleBar( v2 ? v2->verticalTitleBar : false );
const bool verticalTitleBar( dockWidgetOption->verticalTitleBar );
const auto buttonRect( subElementRect( dockWidgetOption->floatable ? SE_DockWidgetFloatButton : SE_DockWidgetCloseButton, option, widget ) );
Supports Markdown
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