Bug 166605 - Black background in Notes in text which has been pasted
Summary: Black background in Notes in text which has been pasted
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-misc (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-15 11:37 UTC by Michal Borek
Modified: 2008-07-15 20:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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