Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:2-TestDVD
kwidgetsaddons
0001-KPageListViewDelegate-Pass-widget-to-drawP...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-KPageListViewDelegate-Pass-widget-to-drawPrimitive.patch of Package kwidgetsaddons
From bc304cbde7fd407100e952bae71725d6a08b2305 Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Fri, 7 Jul 2017 11:04:53 +0200 Subject: [PATCH] [KPageListViewDelegate] Pass widget to drawPrimitive Summary: Ensure the style knows what widget its painting focus for. Also take the widget's style (as is done in the delegate paint method) Reviewers: kde-frameworks-devel, fvogt Reviewed By: fvogt Subscribers: #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D6543 --- src/kpageview_p.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kpageview_p.cpp b/src/kpageview_p.cpp index 0852c41..ff1554b 100644 --- a/src/kpageview_p.cpp +++ b/src/kpageview_p.cpp @@ -495,7 +495,9 @@ void KPageListViewDelegate::drawFocus(QPainter *painter, const QStyleOptionViewI ? QPalette::Normal : QPalette::Disabled; o.backgroundColor = option.palette.color(cg, (option.state & QStyle::State_Selected) ? QPalette::Highlight : QPalette::Background); - QApplication::style()->drawPrimitive(QStyle::PE_FrameFocusRect, &o, painter); + + QStyle *style = option.widget ? option.widget->style() : QApplication::style(); + style->drawPrimitive(QStyle::PE_FrameFocusRect, &o, painter, option.widget); } } -- 2.13.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor