[Kstars-devel] KDE/kdeedu/kstars/kstars/tools
Akarsh Simha
akarshsimha at gmail.com
Fri Dec 26 15:58:07 CET 2008
SVN commit 901757 by asimha:
Fix key-shortcuts for centering on planets in the Solar System tool
CCMAIL: kstars-devel at kde.org
M +8 -8 pvplotwidget.cpp
--- trunk/KDE/kdeedu/kstars/kstars/tools/pvplotwidget.cpp #901756:901757
@@ -104,7 +104,7 @@
case Qt::Key_2: //Venus
{
- KPlotPoint *p = plotObjects().at(12)->points().at(0);
+ KPlotPoint *p = plotObjects().at(11)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Venus" );
update();
@@ -113,7 +113,7 @@
case Qt::Key_3: //Earth
{
- KPlotPoint *p = plotObjects().at(14)->points().at(0);
+ KPlotPoint *p = plotObjects().at(12)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Earth" );
update();
@@ -122,7 +122,7 @@
case Qt::Key_4: //Mars
{
- KPlotPoint *p = plotObjects().at(16)->points().at(0);
+ KPlotPoint *p = plotObjects().at(13)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Mars" );
update();
@@ -131,7 +131,7 @@
case Qt::Key_5: //Jupiter
{
- KPlotPoint *p = plotObjects().at(18)->points().at(0);
+ KPlotPoint *p = plotObjects().at(14)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Jupiter" );
update();
@@ -140,7 +140,7 @@
case Qt::Key_6: //Saturn
{
- KPlotPoint *p = plotObjects().at(20)->points().at(0);
+ KPlotPoint *p = plotObjects().at(15)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Saturn" );
update();
@@ -149,7 +149,7 @@
case Qt::Key_7: //Uranus
{
- KPlotPoint *p = plotObjects().at(22)->points().at(0);
+ KPlotPoint *p = plotObjects().at(16)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Uranus" );
update();
@@ -158,7 +158,7 @@
case Qt::Key_8: //Neptune
{
- KPlotPoint *p = plotObjects().at(24)->points().at(0);
+ KPlotPoint *p = plotObjects().at(17)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Neptune" );
update();
@@ -167,7 +167,7 @@
case Qt::Key_9: //Pluto
{
- KPlotPoint *p = plotObjects().at(26)->points().at(0);
+ KPlotPoint *p = plotObjects().at(18)->points().at(0);
setLimits( p->x() - dx, p->x() + dx, p->y() - dy, p->y() + dy );
pv->setCenterPlanet( "Pluto" );
update();
More information about the Kstars-devel
mailing list