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

List:       kde-commits
Subject:    KDE/kdepim/kleopatra/view
From:       Marc Mutz <mutz () kde ! org>
Date:       2008-04-22 12:36:37
Message-ID: 1208867797.534375.8225.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 799813 by mutz:

Add hasRunningCommands()

 M  +7 -0      keylistcontroller.cpp  
 M  +2 -0      keylistcontroller.h  


--- trunk/KDE/kdepim/kleopatra/view/keylistcontroller.cpp #799812:799813
@@ -238,6 +238,13 @@
         emit commandsExecuting( true );
 }
 
+bool KeyListController::hasRunningCommands() const {
+    QDebug dbg = kDebug();
+    Q_FOREACH( const Command * cmd, d->commands )
+        dbg << cmd;
+    return !d->commands.empty();
+}
+
 // slot
 void KeyListController::cancelCommands() {
     std::for_each( d->commands.begin(), d->commands.end(),
--- trunk/KDE/kdepim/kleopatra/view/keylistcontroller.h #799812:799813
@@ -73,6 +73,8 @@
 
         void enableDisableActions( const QItemSelectionModel * sm ) const;
 
+        bool hasRunningCommands() const;
+
     private:
         void registerAction( QAction * action, Command::Restrictions restrictions , \
Command * (KeyListController::*create)()=0 );  


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

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