[Konversation-devel] [Bug 224033] Background image redrawing issues on scroll
Bernd Buschinski
b.buschinski at web.de
Fri Sep 10 14:23:24 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=224033
Bernd Buschinski <b.buschinski at web.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Bernd Buschinski <b buschinski web de> 2010-09-10 14:23:22 ---
commit c0491dc653337f7b40a8e4cb88835e745fde7968
Author: Bernd Buschinski <b.buschinski at web.de>
Date: Fri Sep 10 14:08:58 2010 +0200
Set backgroundimage with Qt Style Sheets as they seems
to be more eager in repainting the whole image
as the QPalette background brush.
Tested on my intel-gfx laptop with current git drivers
(where it always happened) and on my desktop gf8800gt
with nvidia-260.19.04(where it only happens with my test login).
BUG:224033
diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp
index 6cecaa1..90c2bf6 100644
--- a/src/viewer/ircview.cpp
+++ b/src/viewer/ircview.cpp
@@ -557,25 +557,19 @@ void IRCView::updateAppearance()
setVerticalScrollBarPolicy(Preferences::self()->showIRCViewScrollBar() ?
Qt::ScrollBarAlwaysOn : Qt::ScrollBarAlwaysOff);
- QPalette p;
-
- p.setColor(QPalette::Base,
Preferences::self()->color(Preferences::TextViewBackground));
-
if (Preferences::self()->showBackgroundImage())
{
KUrl url = Preferences::self()->backgroundImage();
if (!url.isEmpty())
{
- QBrush brush;
-
- brush.setTexture(QPixmap(url.path()));
-
- p.setBrush(QPalette::Base, brush);
+ setStyleSheet("QTextBrowser { background-image:
url("+url.path()+");background-attachment: fixed }");
}
}
-
- setPalette(p);
+ else
+ {
+ setStyleSheet("QTextBrowser { background-color:" +
Preferences::self()->color(Preferences::TextViewBackground).name() + " }");
+ }
}
// Data insertion
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Konversation-devel
mailing list