[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kdm/kfrontend/themer
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2010-03-20 21:25:13
Message-ID: 20100320212513.C01ACAC868 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1105666 by ossi:

handle line edits specially wrt autoFillBackground

 M  +6 -2      kdmitem.cpp  


--- trunk/KDE/kdebase/workspace/kdm/kfrontend/themer/kdmitem.cpp #1105665:1105666
@@ -249,8 +249,12 @@
 void
 KdmItem::updatePalette( QWidget *w )
 {
-	bool set = w->palette().isBrushSet( w->palette().currentColorGroup(),
-	                                    w->backgroundRole() );
+	// line edits set Base as the background role. however, they actively paint
+	// the background of the "text area" themselves anyway, and setting this
+	// property would also fill the surrounding window aera, which is ugly.
+	bool set = !qobject_cast<QLineEdit *>(w) &&
+		w->palette().isBrushSet( w->palette().currentColorGroup(),
+		                         w->backgroundRole() );
 	w->setAutoFillBackground( set );
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic