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

List:       kde-commits
Subject:    koffice/kdgantt
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2009-09-03 11:17:39
Message-ID: 1251976659.145802.10823.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1019350 by berger:

update kdgantt with the changes from kdepim


 M  +1 -1      kdganttabstractrowcontroller.cpp  
 M  +4 -4      kdganttproxymodel.cpp  
 M  +1 -1      kdganttsummaryhandlingproxymodel.cpp  


--- trunk/koffice/kdgantt/kdganttabstractrowcontroller.cpp #1019349:1019350
@@ -53,7 +53,7 @@
  * \returns true if the row containing index \a idx is visible
  * in the view.
  *
- * Implement this to allow KDGantt to optimize how items on
+ * Implement this to allow KDGantt to optimise how items on
  * screen are created. It is not harmful to always return true here,
  * but the View will not perform optimally.
  */
--- trunk/koffice/kdgantt/kdganttproxymodel.cpp #1019349:1019350
@@ -166,10 +166,10 @@
 {
     int srole = role;
     int scol  = proxyIdx.column();
-    QHash<int, int>::const_iterator it = d->roleMap.constFind( role );
-    if ( it != d->roleMap.constEnd() ) srole = *it;
-    it = d->columnMap.constFind( role );
-    if ( it != d->columnMap.constEnd() ) scol = *it;
+    QHash<int, int>::const_iterator it = d->roleMap.find( role );
+    if ( it != d->roleMap.end() ) srole = *it;
+    it = d->columnMap.find( role );
+    if ( it != d->columnMap.end() ) scol = *it;
 
     QAbstractItemModel* model = sourceModel();
     return model->setData( model->index( proxyIdx.row(), scol, mapToSource( \
                proxyIdx.parent() ) ), value, srole );
--- trunk/koffice/kdgantt/kdganttsummaryhandlingproxymodel.cpp #1019349:1019350
@@ -241,7 +241,7 @@
             }
         } else {
             d->insertInCache( this, sidx );
-            return data( proxyIndex, role ); /* TODO: Optimize */
+            return data( proxyIndex, role ); /* TODO: Optimise */
         }
     }
     return model->data( sidx, role );


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

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