Commit 4bad9962 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Revert "reserve space for checkable widgets in menu items"

Summary: This reverts commit 8989f8fd.

Reviewers: #breeze, hpereiradacosta

Reviewed By: hpereiradacosta

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10530
parent 8989f8fd
......@@ -2728,7 +2728,8 @@ namespace Breeze
leftColumnWidth += Metrics::MenuItem_ItemSpacing;
// add checkbox indicator width
leftColumnWidth += Metrics::CheckBox_Size + Metrics::MenuItem_ItemSpacing;
if( menuItemOption->menuHasCheckableItems )
{ leftColumnWidth += Metrics::CheckBox_Size + Metrics::MenuItem_ItemSpacing; }
// add spacing for accelerator
/*
......@@ -4697,8 +4698,11 @@ namespace Breeze
// define relevant rectangles
// checkbox
QRect checkBoxRect;
checkBoxRect = QRect( contentsRect.left(), contentsRect.top() + (contentsRect.height()-Metrics::CheckBox_Size)/2, Metrics::CheckBox_Size, Metrics::CheckBox_Size );
contentsRect.setLeft( checkBoxRect.right() + Metrics::MenuItem_ItemSpacing + 1 );
if( menuItemOption->menuHasCheckableItems )
{
checkBoxRect = QRect( contentsRect.left(), contentsRect.top() + (contentsRect.height()-Metrics::CheckBox_Size)/2, Metrics::CheckBox_Size, Metrics::CheckBox_Size );
contentsRect.setLeft( checkBoxRect.right() + Metrics::MenuItem_ItemSpacing + 1 );
}
// render checkbox indicator
if( menuItemOption->checkType == QStyleOptionMenuItem::NonExclusive )
......
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