[Kstars-devel] kdeedu/kstars/kstars

Pablo de Vicente p.devicente at wanadoo.es
Tue Nov 2 21:31:41 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Martes, 2 de Noviembre de 2004 08:04, Jason Harris escribió:
> Hi Pablo,
>
> What do you think about making the radio beam FOV semi-transparent, like
> I did with the infoboxes?
>
> On Monday 01 November 2004 11:00 pm, Pablo de Vicente wrote:
> >        p.setBrush( QColor (color()), Dense4Pattern );
>
> see: http://doc.trolltech.com/3.3/qt.html#BrushStyle-enum
>
> Jason

Hello Jason,

  I think it is a good idea, indeed better than using a solid circle.... but I 
cannot make it work. Sorry I feel really silly.

a) p.setBrush( QColor (color()), Dense4Pattern );
does not work, because painter.setBrush does not accept two arguments.
If I use p.setBrush(const QColor) then the style is solidPattern by default. 
If I choose the pattern, then the brush color is black.

b) on the other hand, I have tried this sequence:

 QBrush   brush( QColor (color()), Qt::Dense4Pattern);
 p.setBrush(brush);

 but this one does not compile either. 

 I also have a second problem since 3 days ago. I cannot make appear in the 
Options->FOV symbols, item Radiotelescope (30m at 1.3 cm). I have included 
the corresponding code in kstarsinit.cpp (see line 701). But I do not 
understand why it is not automatically included. 

Can you have a look at these two issues?. I am sure both of them can be solved 
very easily, but I am stuck, and I dot not see the solution.

best regards,

Pablo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBh+65SItUpHl6kJERAun7AJ0ZfKlUxtWiFMXDw6Si9tjlmcxScgCg0dac
IDKguiqKRvhoSHAlUX3zv0c=
=iJNA
-----END PGP SIGNATURE-----


More information about the Kstars-devel mailing list