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

List:       kde-commits
Subject:    KDE/kdepim/ktimetracker
From:       Thorsten Staerk <dev () staerk ! de>
Date:       2010-08-08 12:05:38
Message-ID: 20100808120538.CAF7CAC73B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1160570 by tstaerk:

Shortcut G for "go" tracking.
BUGS:228368


 M  +7 -4      timetrackerwidget.cpp  


--- trunk/KDE/kdepim/ktimetracker/timetrackerwidget.cpp #1160569:1160570
@@ -376,6 +376,7 @@
     }
 
     // custom shortcuts
+    d->mActions[ "start" ]->setShortcut( QKeySequence( Qt::Key_G) );
     d->mActions[ "stopAll" ]->setShortcut( QKeySequence( Qt::Key_Escape ) );
     d->mActions[ "new_task" ]->setShortcut( QKeySequence( Qt::CTRL + Qt::Key_T ) );
     d->mActions[ "focusSearchBar" ]->setShortcut( QKeySequence( Qt::Key_S ) );
@@ -765,9 +766,11 @@
     TaskView *taskView = currentTaskView();
     if ( !taskView ) return result;
     QTreeWidgetItemIterator it( taskView );
-    while ( *it ) {
+    while ( *it )
+    {
         Task *task = static_cast< Task* >( *it );
-        if ( task && task->name() == taskName ) {
+        if ( task && task->name() == taskName )
+        {
             result << task->uid();
         }
         ++it;
@@ -780,8 +783,8 @@
 {
     TaskView *taskView = currentTaskView();
 
-    if ( taskView ) {
-    
+    if ( taskView )
+    {
         taskView->addTask( taskName, 0, 0, DesktopList(), 0 );
     }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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