From kde-commits Thu Jul 01 13:27:37 2010 From: "Ä°smail" "Dönmez" Date: Thu, 01 Jul 2010 13:27:37 +0000 To: kde-commits Subject: [Konversation] bf7fea0: Shame shame on me. Fix the missing background Message-Id: <20100701132737.CC3FDBB567C () projects ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127800588332145 commit bf7fea0e158e9c75ba3a1723ea78728a85127874 Author: İsmail Dönmez Date: Tue Jul 13 15:46:48 2004 +0000 Shame shame on me. Fix the missing background image crap. svn path=/trunk/kdeextragear-2/konversation/; revision=328755 diff --git a/konversation/query.cpp b/konversation/query.cpp index a720924..740392d 100644 --- a/konversation/query.cpp +++ b/konversation/query.cpp @@ -175,7 +175,9 @@ void Query::updateFonts() queryHostmask->setFont(KonversationApplication::preferences.getTextFont()); getTextView()->setFont(KonversationApplication::preferences.getTextFont()); - getTextView()->setViewBackground(KonversationApplication::preferences.getColor("TextViewBackground"), + + if(KonversationApplication::preferences.getShowBackgroundImage()) + getTextView()->setViewBackground(KonversationApplication::preferences.getColor("TextViewBackground"), KonversationApplication::preferences.getBackgroundImageName()); } diff --git a/konversation/rawlog.cpp b/konversation/rawlog.cpp index 1c058fd..cf78b72 100644 --- a/konversation/rawlog.cpp +++ b/konversation/rawlog.cpp @@ -43,7 +43,9 @@ void RawLog::adjustFocus() void RawLog::updateFonts() { getTextView()->setFont(KonversationApplication::preferences.getTextFont()); - getTextView()->setViewBackground(KonversationApplication::preferences.getColor("TextViewBackground"), + + if(KonversationApplication::preferences.getShowBackgroundImage()) + getTextView()->setViewBackground(KonversationApplication::preferences.getColor("TextViewBackground"), KonversationApplication::preferences.getBackgroundImageName()); }