[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents
Jason Harris
kstars at 30doradus.org
Tue Oct 31 06:40:15 CET 2006
SVN commit 600601 by harris:
Don't neglect to update the horizon line in SkyMapComposite::update().
This fixes a bug where the "Horizon" label would fly off in crazy
directions after changing the geographic location.
Also, use width=2 for horizon line.
CCMAIL: kstars-devel at kde.org
M +1 -2 coordinategridcomponent.cpp
M +1 -1 horizoncomponent.cpp
M +2 -0 skymapcomposite.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/coordinategridcomponent.cpp #600600:600601
@@ -66,11 +66,10 @@
{
// TODO add accessor methods to map for guideMax etc.
- if (!Options::showGrid()) return;
+ if ( ! visible() ) return;
SkyMap *map = ks->map();
- //Draw coordinate grid
psky.setPen( QPen( QColor( ks->data()->colorScheme()->colorNamed( "GridColor" ) ), 1, Qt::DotLine ) ); //change to GridColor
SkyPoint *sp = pointList()[0];
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/horizoncomponent.cpp #600600:600601
@@ -78,7 +78,7 @@
QPolygon groundPoly;
SkyPoint *pAnchor(0), *pAnchor2(0);
- psky.setPen( QPen( QColor( ks->data()->colorScheme()->colorNamed( "HorzColor" ) ), 1, Qt::SolidLine ) );
+ psky.setPen( QPen( QColor( ks->data()->colorScheme()->colorNamed( "HorzColor" ) ), 2, Qt::SolidLine ) );
if ( Options::showGround() )
psky.setBrush( QColor ( ks->data()->colorScheme()->colorNamed( "HorzColor" ) ) );
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/skymapcomposite.cpp #600600:600601
@@ -104,6 +104,8 @@
m_CustomCatalogs->update( data, num );
//10. Stars
m_Stars->update( data, num );
+ //11. Horizn
+ m_Horizon->update( data, num );
}
void SkyMapComposite::updatePlanets(KStarsData *data, KSNumbers *num )
More information about the Kstars-devel
mailing list