Bug 166605

Summary: Black background in Notes in text which has been pasted
Product: [Unmaintained] plasma4 Reporter: Michal Borek <michal>
Component: widget-miscAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michal Borek 2008-07-15 11:37:42 UTC
Version:           nieznana (using 4.00.85 (KDE 4.0.85 (KDE 4.1 >= 20080703) "release 4.2", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.9-0.2-pae

I copied some text from one Notes widget to the other. I can't see text now because of black background (see Snapshot at http://www.ownlog.com/smiecie/notesbug.png)
Comment 1 Sebastian Kügler 2008-07-15 12:10:55 UTC
Which video driver are you using?
Comment 2 Michal Borek 2008-07-15 12:16:03 UTC
Intel 945 GM.
Comment 3 Marco Martin 2008-07-15 14:55:17 UTC
the problem is that when you copy text from the notes applet it copies rich text with a black background (it's html, so he don't know what alphachannel is, so QColor(0,0,0,0) = QColor(0,0,0,255))
the only workaround that comes to my mind is to forbid rich text setAcceptRichText(false)
don't know if it's possible to modify somehow the text copied, maybe reimplementing createMimeDataFromSelection() ? just guessing, i have no idea
Comment 4 Anne-Marie Mahfouf 2008-07-15 17:19:13 UTC
Simply removing line 64
m_textEdit->nativeWidget()->setTextBackgroundColor(QColor(0,0,0,0));
seems to fix it.
Can you try it please?
Comment 5 Marco Martin 2008-07-15 19:22:17 UTC
it fixes it also for me, think you can commit
seems pretty silly that line in the first place :)
Comment 6 Anne-Marie Mahfouf 2008-07-15 20:35:18 UTC
SVN commit 832890 by annma:

not needed at the first place, especially as it triggers a copy/paste bug
CCBUG=166605


 M  +0 -1      notes.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=832890
Comment 7 Anne-Marie Mahfouf 2008-07-15 20:38:34 UTC
SVN commit 832891 by annma:

not needed as it triggers copy/paste bug
BUG=166605


 M  +0 -1      notes.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=832891