[Kstars-devel] kdeedu/kstars/kstars

Pablo de Vicente p.devicente at wanadoo.es
Tue Nov 2 22:12:02 CET 2004


CVS commit by pvicente: 

Using semitransparent circle for representing the HPBW of a radiotelescope.
I finally used an example I found in C++ GUI programming with Qt3 by Jasmin Blanchette and 
Mark Summerfield. This was the only way I found to make it work.

CCMAIL:kstars-devel at kde.org


  M +1 -1      fov.cpp   1.5
  M +1 -1      newfovui.ui   1.10


--- kdeedu/kstars/kstars/newfovui.ui  #1.9:1.10
@@ -791,5 +791,5 @@
                                     <item>
                                         <property name="text">
-                                            <string>Solid circle</string>
+                                            <string>Semitransparent circle</string>
                                         </property>
                                     </item>

--- kdeedu/kstars/kstars/fov.cpp  #1.4:1.5
@@ -129,5 +129,5 @@ void FOV::draw( QPainter &p, float pixel
                 case 4: { // Solid Circle
                         int s = int( pixelsize );
-                        p.setBrush( QColor (color()) );
+                        p.setBrush( QBrush ( QColor( color() ), Qt::Dense4Pattern) );
                         p.drawEllipse( (w - s)/2, (h - s)/2, s, s );
                         p.setBrush(Qt::NoBrush);




More information about the Kstars-devel mailing list