r17386 by fschmid - Improved visual appearance when an item is disabled in ScTreeWidget.

scribus-commit scribus-commit at lists.scribus.net
Sat Mar 17 20:09:43 UTC 2012


Author: fschmid
Date: Sat Mar 17 20:09:42 2012
New Revision: 17386

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17386
Log:
Improved visual appearance when an item is disabled in ScTreeWidget.

Modified:
    trunk/Scribus/scribus/ui/sctreewidget.cpp

Modified: trunk/Scribus/scribus/ui/sctreewidget.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17386&path=/trunk/Scribus/scribus/ui/sctreewidget.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/sctreewidget.cpp (original)
+++ trunk/Scribus/scribus/ui/sctreewidget.cpp Sat Mar 17 20:09:42 2012
@@ -55,7 +55,10 @@
 		static const int i = 9; // ### hardcoded in qcommonstyle.cpp
 		QRect r = option.rect;
 		painter->save();
-		painter->setBrush(Qt::black);
+		if (option.state & QStyle::State_Enabled)
+			painter->setBrush(Qt::black);
+		else
+			painter->setBrush(Qt::gray);
 		painter->setPen(Qt::NoPen);
 		QRect rect = QRect(r.left()+6, r.top()+6, r.height()-12, r.height()-12);
 		QPolygon pa(3);




More information about the scribus-commit mailing list