[Kstars-devel] KDE/kdeedu/kstars/kstars/widgets
Jason Harris
kstars at 30doradus.org
Wed Jan 4 20:46:17 CET 2006
Thanks for fixing this Pablo. 2 days ago, Pino made some API changes in
KPlotWidget, which explains why KStarsPlotWidget stopped compiling.
There is a KPlotWidget::axis() function which can be used instead of
mAxis[]. Might be better to do it that way.
(also, I added your wanadoo email to the whitelist, so messages from
that address won't have to wait for moderation anymore)
regards,
Jason
Pablo de Vicente wrote:
> SVN commit 494355 by pvicente:
>
> This makes the widget directory compile.
> CCMAIL: kstars-devel at kde.org
>
>
> M +6 -5 kstarsplotwidget.cpp
>
>
> --- trunk/KDE/kdeedu/kstars/kstars/widgets/kstarsplotwidget.cpp #494354:494355
> @@ -25,6 +25,7 @@
> #include <qstring.h>
>
> #include "kstarsplotwidget.h"
> +#include "./libkdeedu/kdeeduplot/kplotaxis.h"
>
>
>
> @@ -321,7 +322,7 @@
> p->setPen( foregroundColor() );
> p->setBrush( Qt::NoBrush );
>
> - if ( LeftAxis.isVisible() || BottomAxis.isVisible() ) p->drawRect( PixRect ); //box outline
> + if ( mAxes[LeftAxis]->isVisible() || mAxes[BottomAxis]->isVisible() ) p->drawRect( PixRect ); //box outline
>
> if ( ShowTickMarks ) {
> //spacing between minor tickmarks (in data units)
> @@ -609,9 +610,9 @@
> } //end if ( showTickmarks )
>
> //Draw X Axis Label(s)
> - if ( ! BottomAxis.label().isEmpty() ) {
> + if ( ! mAxes[BottomAxis]->label().isEmpty() ) {
> QRect r( 0, PixRect.height() + 2*YPADDING, PixRect.width(), YPADDING );
> - p->drawText( r, Qt::AlignCenter | Qt::TextDontClip, BottomAxis.label() );
> + p->drawText( r, Qt::AlignCenter | Qt::TextDontClip, mAxes[BottomAxis]->label() );
> }
> if ( ! XAxisLabel2.isEmpty() ) {
> QRect r( 0, -3*YPADDING, PixRect.width(), YPADDING );
> @@ -619,7 +620,7 @@
> }
>
> //Draw Y Axis Label(s). We need to draw the text sideways.
> - if ( ! LeftAxis.label().isEmpty() ) {
> + if ( ! mAxes[LeftAxis]->label().isEmpty() ) {
> //store current painter translation/rotation state
> p->save();
>
> @@ -628,7 +629,7 @@
> p->rotate( -90.0 );
>
> QRect r( 0, 0, PixRect.height(), XPADDING );
> - p->drawText( r, Qt::AlignCenter | Qt::TextDontClip, LeftAxis.label() ); //draw the label, now that we are sideways
> + p->drawText( r, Qt::AlignCenter | Qt::TextDontClip, mAxes[LeftAxis]->label() ); //draw the label, now that we are sideways
>
> p->restore(); //restore translation/rotation state
> }
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>
>
More information about the Kstars-devel
mailing list