From 9af993bf9c2adcd67cd4e0119efab25d1e77addc6522244ed44b9299bca572b8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer Date: Sun, 23 Oct 2016 18:43:16 +0000 Subject: [PATCH] Accepting request 437004 from home:wolfi323:test - Update add-support-for-Q3ListView-to-the-KDE4-style.patch to fix some graphical glitches (boo#1005902) Sync to KDE:Frameworks5:LTS... OBS-URL: https://build.opensuse.org/request/show/437004 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze?expand=0&rev=130 --- add-support-for-Q3ListView-to-the-KDE4-style.patch | 8 ++++++-- breeze.changes | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/add-support-for-Q3ListView-to-the-KDE4-style.patch b/add-support-for-Q3ListView-to-the-KDE4-style.patch index 641405f..4717f29 100644 --- a/add-support-for-Q3ListView-to-the-KDE4-style.patch +++ b/add-support-for-Q3ListView-to-the-KDE4-style.patch @@ -1,5 +1,5 @@ diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp -index 8a02d75..359d1ab 100644 +index 8a02d75..c1b9670 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -929,6 +929,7 @@ namespace Breeze @@ -10,7 +10,7 @@ index 8a02d75..359d1ab 100644 case CC_Slider: fcn = &Style::drawSliderComplexControl; break; case CC_Dial: fcn = &Style::drawDialComplexControl; break; case CC_ScrollBar: fcn = &Style::drawScrollBarComplexControl; break; -@@ -6122,6 +6123,63 @@ namespace Breeze +@@ -6122,6 +6216,67 @@ namespace Breeze } //______________________________________________________________ @@ -50,7 +50,9 @@ index 8a02d75..359d1ab 100644 + { opt.state |= QStyle::State_Children | ( item.state & QStyle::State_Open ); } + + opt.rect = QRect( optListView->rect.left(), y, optListView->rect.width(), item.height ); ++ painter->save(); + drawIndicatorBranchPrimitive( &opt, painter, widget ); ++ painter->restore(); + + if( ( opt.state & QStyle::State_Sibling ) && item.height < item.totalHeight ) + { @@ -58,7 +60,9 @@ index 8a02d75..359d1ab 100644 + opt.rect = QRect( + optListView->rect.left(), y + item.height, + optListView->rect.width(), item.totalHeight - item.height ); ++ painter->save(); + drawIndicatorBranchPrimitive( &opt, painter, widget ); ++ painter->restore(); + } + } + diff --git a/breeze.changes b/breeze.changes index 6400750..59ad2a1 100644 --- a/breeze.changes +++ b/breeze.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 23 18:02:27 UTC 2016 - wbauer@tmo.at + +- Update add-support-for-Q3ListView-to-the-KDE4-style.patch to fix + some graphical glitches (boo#1005902) + ------------------------------------------------------------------- Tue Oct 18 15:16:03 UTC 2016 - fabian@ritter-vogt.de