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

List:       kde-commits
Subject:    new_kcm_code: kdelibs/kutils
From:       Frans Englich <frans.englich () telia ! com>
Date:       2004-10-13 17:32:37
Message-ID: 20041013173237.0CDB516CC7 () office ! kde ! org
[Download RAW message or body]

CVS commit by englich: 

Set quickhelp and aboutdata


  M +11 -5     kcmodulecontainer.cpp   1.1.2.4


--- kdelibs/kutils/kcmodulecontainer.cpp  #1.1.2.3:1.1.2.4
@@ -164,17 +164,23 @@ void KCModuleContainer::tabSwitched( QWi
 
         /* Not like this. Not like this. */
-        disconnect( d->btnRootMode, 0, 0, 0);
+        disconnect( d->btnRootMode, 0, 0, 0 );
         /* Welcome to the real world huh baby? */
 
-        if ( ((KCModuleProxy *) module)->moduleInfo().needsRootPrivileges()  
-                        && !((KCModuleProxy *) module)->rootMode() )
+        KCModuleProxy* mod = (KCModuleProxy *) module;
+
+        if ( mod->moduleInfo().needsRootPrivileges() && !mod->rootMode() )
         {
                 d->btnRootMode->setEnabled( true );
-                connect( d->btnRootMode, SIGNAL( clicked() ), SLOT( rootMode() ));
-                connect( ((KCModuleProxy *) module), SIGNAL( childClosed() ), SLOT ( rootExited() ));
+                connect( d->btnRootMode, SIGNAL( clicked() ), 
+                                SLOT( rootMode() ));
+                connect( mod, SIGNAL( childClosed() ), 
+                                SLOT ( rootExited() ));
         }
         else
                 d->btnRootMode->setEnabled( false );
 
+        setQuickHelp( mod->quickHelp() );
+        setAboutData( const_cast<KAboutData*>(mod->aboutData()) );
+
 }
 


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

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