Commit 4abcf69b authored by Akarsh Simha's avatar Akarsh Simha

Cosmetics

parent 261a6fe5
......@@ -718,22 +718,22 @@ void KStars::slotViewOps() {
opadvanced = new OpsAdvanced();
KPageWidgetItem *page;
page = dialog->addPage(opcatalog, i18n("Catalogs"), "kstars_catalog");
page->setIcon(QIcon::fromTheme("kstars_catalog", QIcon(":/icons/breeze/default/kstars_catalog.svg")));
page = dialog->addPage(opsolsys, i18n("Solar System"), "kstars_solarsystem");
page->setIcon(QIcon::fromTheme("kstars_solarsystem", QIcon(":/icons/breeze/default/kstars_solarsystem.svg")));
page = dialog->addPage(opssatellites, i18n("Satellites"), "kstars_satellites");
page->setIcon(QIcon::fromTheme("kstars_satellites", QIcon(":/icons/breeze/default/kstars_satellites.svg")));
page = dialog->addPage(opssupernovae, i18n("Supernovae"), "kstars_supernovae");
page->setIcon(QIcon::fromTheme("kstars_supernovae", QIcon(":/icons/breeze/default/kstars_supernovae.svg")));
page = dialog->addPage(opguides, i18n("Guides"), "kstars_guides");
page->setIcon(QIcon::fromTheme("kstars_guides", QIcon(":/icons/breeze/default/kstars_guides.svg")));
page = dialog->addPage(opcolors, i18n("Colors"), "kstars_colors");
page->setIcon(QIcon::fromTheme("kstars_colors", QIcon(":/icons/breeze/default/kstars_colors.svg")));
......@@ -766,7 +766,7 @@ void KStars::slotViewOps() {
void KStars::slotApplyConfigChanges()
{
Options::self()->save();
Options::self()->save();
applyConfig();
......
......@@ -29,8 +29,8 @@
#else
#include "skymap.h"
#endif
#include "skyobjects/skypoint.h"
#include "skyobjects/trailobject.h"
#include "skyobjects/skypoint.h"
#include "skyobjects/trailobject.h"
#include "dms.h"
#include "Options.h"
#include "solarsystemsinglecomponent.h"
......@@ -89,10 +89,10 @@ void PlanetMoonsComponent::updateMoons( KSNumbers *num )
SkyObject* PlanetMoonsComponent::findByName( const QString &name ) {
int nmoons = pmoons->nMoons();
for ( int i=0; i<nmoons; ++i ) {
TrailObject *moon = pmoons->moon(i);
if ( QString::compare( moon->name(), name, Qt::CaseInsensitive ) == 0 ||
if ( QString::compare( moon->name(), name, Qt::CaseInsensitive ) == 0 ||
QString::compare( moon->longname(), name, Qt::CaseInsensitive ) == 0 ||
QString::compare( moon->name2(), name, Qt::CaseInsensitive ) == 0 )
return moon;
......@@ -107,10 +107,10 @@ KSPlanetBase* PlanetMoonsComponent::getPlanet() const {
}
#endif
SkyObject* PlanetMoonsComponent::objectNearest( SkyPoint *p, double &maxrad ) {
SkyObject* PlanetMoonsComponent::objectNearest( SkyPoint *p, double &maxrad ) {
SkyObject *oBest = 0;
int nmoons = pmoons->nMoons();
if (Options::zoomFactor() < 3000)
return NULL;
......@@ -129,13 +129,13 @@ void PlanetMoonsComponent::draw( SkyPainter *skyp )
{
if( !(planet == KSPlanetBase::JUPITER && Options::showJupiter() ) )
return;
//In order to get the z-order right for the moons and the planet,
//we need to first draw the moons that are further away than the planet,
//then re-draw the planet, then draw the moons nearer than the planet.
QList<TrailObject*> frontMoons;
int nmoons = pmoons->nMoons();
for ( int i=0; i<nmoons; ++i ) {
if ( pmoons->z(i) < 0.0 ) { //Moon is nearer than the planet
frontMoons.append( pmoons->moon(i) );
......
......@@ -141,7 +141,7 @@ void SolarSystemComposite::updateSolarSystemBodies( KSNumbers *num )
void SolarSystemComposite::updateMoons( KSNumbers *num )
{
// if ( ! selected() ) return;
KStarsData *data = KStarsData::Instance();
KStarsData *data = KStarsData::Instance();
m_Sun->findPosition( num );
m_Moon->findPosition( num, data->geo()->lat(), data->lst() );
m_Moon->findPhase(0);
......
......@@ -124,7 +124,7 @@ void modCalcEquinox::processLines( QTextStream &istream ) {
Year->setValue( year );
//Write to output file
ostream <<
ostream <<
QLocale().toString( dSpring.date(), QLocale::LongFormat ) << "\t"
<< QLocale().toString( dSummer.date(), QLocale::LongFormat ) << "\t"
<< QLocale().toString( dAutumn.date(), QLocale::LongFormat ) << "\t"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment