[Konversation-devel] [Bug 224033] Background image redrawing issues on scroll
Bernd Buschinski
b.buschinski at web.de
Fri Sep 10 16:47:37 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=224033
--- Comment #6 from Bernd Buschinski <b buschinski web de> 2010-09-10 16:47:37 ---
commit c5da3e3f4e8c527f7e77aa4abef7eabbacfe4158
Author: Bernd Buschinski <b.buschinski at web.de>
Date: Fri Sep 10 16:47:33 2010 +0200
Revert Qt Style Sheet solution, as it breaks scrollbar drawing
CCBUG:224033
diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp
index 4d55bd8..33bf88b 100644
--- a/src/viewer/ircview.cpp
+++ b/src/viewer/ircview.cpp
@@ -557,28 +557,24 @@ void IRCView::updateAppearance()
setVerticalScrollBarPolicy(Preferences::self()->showIRCViewScrollBar() ?
Qt::ScrollBarAlwaysOn : Qt::ScrollBarAlwaysOff);
- bool bgImageSet = false;
+ QPalette p;
+
+ p.setColor(QPalette::Base,
Preferences::self()->color(Preferences::TextViewBackground));
+
if (Preferences::self()->showBackgroundImage())
{
KUrl url = Preferences::self()->backgroundImage();
if (!url.isEmpty())
{
- setStyleSheet("QTextBrowser { background-image:
url("+url.path()+");background-attachment: fixed }");
- bgImageSet = true;
- }
- }
+ QBrush brush;
- if (!bgImageSet)
- {
- if (!styleSheet().isEmpty())
- {
- setStyleSheet("");
+ brush.setTexture(QPixmap(url.path()));
+
+ p.setBrush(QPalette::Base, brush);
}
- QPalette p;
- p.setColor(QPalette::Base,
Preferences::self()->color(Preferences::TextViewBackground));
- setPalette(p);
}
+ setPalette(p);
}
// 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