[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Médéric Boquien mboquien at free.fr
Mon Apr 13 04:08:48 CEST 2009


SVN commit 952978 by mboquien:

Display the labels with the right colour. One should use QPalette:WindowText and not QPalette::Text to set the colour of the text. Now we know which colour represents which moon on the Jupiter moons 
plot.

CCMAIL: kstars-devel at kde.org


 M  +4 -4      jmoontool.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/jmoontool.cpp #952977:952978
@@ -72,13 +72,13 @@
 
     QPalette p = palette();
     p.setColor( QPalette::Window, Qt::black );
-    p.setColor( QPalette::Text, colIo );
+    p.setColor( QPalette::WindowText, colIo );
     labIo->setPalette( p );
-    p.setColor( QPalette::Text, colEu );
+    p.setColor( QPalette::WindowText, colEu );
     labEu->setPalette( p );
-    p.setColor( QPalette::Text, colGn );
+    p.setColor( QPalette::WindowText, colGn );
     labGn->setPalette( p );
-    p.setColor( QPalette::Text, colCa );
+    p.setColor( QPalette::WindowText, colCa );
     labCa->setPalette( p );
     labIo->setAutoFillBackground( true );
     labEu->setAutoFillBackground( true );


More information about the Kstars-devel mailing list