[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/skycomponents
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2010-02-09 22:33:02
Message-ID: 1265754782.999505.1803.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087974 by khudyakov:

Remove init from MilkyWay

 M  +9 -12     milkyway.cpp  
 M  +0 -1      milkyway.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/milkyway.cpp #1087973:1087974
@@ -37,7 +37,15 @@
 
 MilkyWay::MilkyWay( SkyComposite *parent ) :
     LineListIndex( parent, i18n("Milky Way") )
-{}
+{
+    intro();
+    // Milky way
+    loadContours("milkyway.dat", i18n("Loading Milky Way"));
+    // Magellanic clouds
+    loadContours("lmc.dat", i18n("Loading Large Magellanic Clouds"));
+    loadContours("smc.dat", i18n("Loading Small Magellanic Clouds"));
+    summary();
+}
 
 const IndexHash& MilkyWay::getIndexHash(LineList* lineList ) {
     // FIXME: EVIL!
@@ -51,17 +59,6 @@
     return skipList->skip( i );
 }
 
-void MilkyWay::init()
-{
-    intro();
-    // Milky way
-    loadContours("milkyway.dat", i18n("Loading Milky Way"));
-    // Magellanic clouds
-    loadContours("lmc.dat", i18n("Loading Large Magellanic Clouds"));
-    loadContours("smc.dat", i18n("Loading Small Magellanic Clouds"));
-    summary();
-}
-
 bool MilkyWay::selected()
 {
     return Options::showMilkyWay() &&
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/milkyway.h #1087973:1087974
@@ -43,7 +43,6 @@
     /** Load skiplists from file */
     void loadContours(QString fname, QString greeting);
   
-    virtual void init();
     virtual void draw( QPainter& psky );
     virtual bool selected();
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic