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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/itemviews
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2010-11-01 12:59:41
Message-ID: 20101101125941.EB3C4AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1191922 by skelly:

More Qt style.

 M  +5 -8      kidentityproxymodel.cpp  


--- trunk/KDE/kdelibs/kdeui/itemviews/kidentityproxymodel.cpp #1191921:1191922
@@ -224,8 +224,7 @@
 
     QItemSelection::const_iterator it = selection.constBegin();
     const QItemSelection::const_iterator end = selection.constEnd();
-    for ( ; it != end; ++it)
-    {
+    for ( ; it != end; ++it) {
         Q_ASSERT(it->model() == sourceModel());
         const QItemSelectionRange range(mapFromSource(it->topLeft()), mapFromSource(it->bottomRight()));
         proxySelection.append(range);
@@ -246,8 +245,7 @@
 
     QItemSelection::const_iterator it = selection.constBegin();
     const QItemSelection::const_iterator end = selection.constEnd();
-    for ( ; it != end; ++it)
-    {
+    for ( ; it != end; ++it) {
         Q_ASSERT(it->model() == this);
         const QItemSelectionRange range(mapToSource(it->topLeft()), mapToSource(it->bottomRight()));
         sourceSelection.append(range);
@@ -532,7 +530,7 @@
 
   Q_Q(KIdentityProxyModel);
 
-  foreach(const QPersistentModelIndex &proxyPersistentIndex, q->persistentIndexList()) {
+    Q_FOREACH(const QPersistentModelIndex &proxyPersistentIndex, q->persistentIndexList()) {
       proxyIndexes << proxyPersistentIndex;
       Q_ASSERT(proxyPersistentIndex.isValid());
       const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);
@@ -578,7 +576,7 @@
     if (q->persistentIndexList().isEmpty())
         return;
 
-    foreach(const QPersistentModelIndex &proxyPersistentIndex, q->persistentIndexList()) {
+    Q_FOREACH(const QPersistentModelIndex &proxyPersistentIndex, q->persistentIndexList()) {
         const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);
         Q_ASSERT(proxyPersistentIndex.isValid());
         Q_ASSERT(srcPersistentIndex.isValid());
@@ -599,8 +597,7 @@
     ignoreNextLayoutChanged = true;
 
     QModelIndexList oldList, newList;
-    for( int i = 0; i < layoutChangePersistentIndexes.size(); ++i)
-    {
+    for( int i = 0; i < layoutChangePersistentIndexes.size(); ++i) {
       const QModelIndex srcIdx = layoutChangePersistentIndexes.at(i);
       const QModelIndex oldProxyIdx = proxyIndexes.at(i);
       oldList << oldProxyIdx;
[prev in list] [next in list] [prev in thread] [next in thread] 

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