[Kstars-devel] KDE/kdeedu/kstars/kstars

Alexey Khudyakov alexey.skladnoy at gmail.com
Wed Nov 4 22:40:39 CET 2009


SVN commit 1044909 by khudyakov:

Remove seemingly useless addition of KActions to KStars->actionCollection

CCMAIL: kstars-devel at kde.org

 M  +0 -7      kspopupmenu.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/kspopupmenu.cpp #1044908:1044909
@@ -150,7 +150,6 @@
     QLabel* labName = new QLabel( "<b>"+name+"</b>", this );
     labName->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
     KAction* aName = new KAction( this );
-    ks->actionCollection()->addAction( "title_name1", aName );
     aName->setDefaultWidget( labName );
     addAction( aName );
 
@@ -158,7 +157,6 @@
         QLabel* labName2 = new QLabel( "<b>"+type+"</b>", this );
         labName2->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
         KAction* aName2 = new KAction( this );
-        ks->actionCollection()->addAction( "title_name2", aName2 );
         aName2->setDefaultWidget( labName2 );
         addAction( aName2 );
     }
@@ -167,7 +165,6 @@
         QLabel* labType = new QLabel( "<b>"+info+"</b>", this );
         labType->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
         KAction* aType = new KAction( this );
-        ks->actionCollection()->addAction( "title_type", aType );
         aType->setDefaultWidget( labType );
         addAction( aType );
     }
@@ -176,7 +173,6 @@
                                    ConstellationBoundary::Instance()->constellationName( obj )+"</b>", this );
     labConstellation->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
     KAction* aConstellation = new KAction( this );
-    ks->actionCollection()->addAction( "title_constellation", aConstellation );
     aConstellation->setDefaultWidget( labConstellation );
     addAction( aConstellation );
 
@@ -194,7 +190,6 @@
         smallFont.setPointSize( smallFont.pointSize() - 2 );
         labRiseTime->setFont( smallFont );
         KAction* aRiseTime = new KAction( this );
-        ks->actionCollection()->addAction( "title_risetime", aRiseTime );
         aRiseTime->setDefaultWidget( labRiseTime );
         addAction( aRiseTime );
 
@@ -202,7 +197,6 @@
         labSetTime->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
         labSetTime->setFont( smallFont );
         KAction* aSetTime = new KAction( this );
-        ks->actionCollection()->addAction( "title_settime", aSetTime );
         aSetTime->setDefaultWidget( labSetTime );
         addAction( aSetTime );
 
@@ -210,7 +204,6 @@
         labTransitTime->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
         labTransitTime->setFont( smallFont );
         KAction* aTransitTime = new KAction( this );
-        ks->actionCollection()->addAction( "title_transittime", aTransitTime );
         aTransitTime->setDefaultWidget( labTransitTime );
         addAction( aTransitTime );
 


More information about the Kstars-devel mailing list