Bug 266766

Summary: [PATCH] Painting issues in Task Editor
Product: [Plasma] plasma4 Reporter: Alexey Chernov <4ernov>
Component: widget-rememberthemilkAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: astromme
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch which fixes the bug

Description Alexey Chernov 2011-02-20 22:55:37 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

Task Editor part is painted with stroking vertical and horizontal black lines when hovering the option with mouse (see the screenshot). I've tested it on ATI (radeon driver), Intel (both with 2D) and NVIDIA (proprietary driver) with 3D.

Reproducible: Always

Steps to Reproduce:
1. Open a task.
2. Move the mouse all over the form.
3. Notice black lines appearing and disappearing here and there.
Comment 1 Alexey Chernov 2011-02-20 22:58:22 UTC
The problem is in TaskEditor::paint function. It uses partial repainting to optimize the process but don't void the painter's pen (according to documentation it's QPalette::Text color which is black usually). So the boundaries of repainted areas are painted with black lines.
The patch with the fix is attached.
Comment 2 Alexey Chernov 2011-02-20 23:01:50 UTC
Created attachment 57407 [details]
Patch which fixes the bug
Comment 3 Alexey Chernov 2011-03-13 19:38:20 UTC
Git commit 1caa2e69f94f9e2fd4c6fd24dfcceacfa356d479 by Alexey Chernov.
Committed on 13/03/2011 at 19:09.
Pushed by chernov into branch 'master'.

Set NoPen for painter in TaskEditor
BUG: 266766

M  +1    -0    applets/rememberthemilk/taskeditor.cpp     

http://commits.kde.org/kdeplasma-addons/1caa2e69f94f9e2fd4c6fd24dfcceacfa356d479
Comment 4 Alexey Chernov 2011-03-13 20:38:22 UTC
Git commit b70e638e929383517ac605854eab607cff25c20e by Alexey Chernov.
Committed on 13/03/2011 at 20:35.
Pushed by chernov into branch 'KDE/4.6'.

Set NoPen for painter in TaskEditor
BUG: 266766

M  +1    -0    applets/rememberthemilk/taskeditor.cpp     

http://commits.kde.org/kdeplasma-addons/b70e638e929383517ac605854eab607cff25c20e
Comment 5 Alexey Chernov 2011-06-12 00:47:46 UTC
Git commit fac18d84b0cfd9af86a1dc37d553b950775aec7d by Alexey Chernov.
Committed on 13/03/2011 at 19:09.
Pushed by chernov into branch '4.6'.

Set NoPen for painter in TaskEditor
BUG: 266766

M  +1    -0    applets/rememberthemilk/taskeditor.cpp     

http://commits.kde.org/kdeplasma-addons/fac18d84b0cfd9af86a1dc37d553b950775aec7d