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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/itemviews
From:       Alex Merry <kde () randomguy3 ! me ! uk>
Date:       2010-10-01 23:38:39
Message-ID: 20101001233839.646BEAC891 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1181746 by alexmerry:

constify.

For ereslibre :-)



 M  +1 -1      kcategorizedview.cpp  


--- trunk/KDE/kdelibs/kdeui/itemviews/kcategorizedview.cpp #1181745:1181746
@@ -364,7 +364,7 @@
 {
     //Find the highest element in the last row
     const QModelIndex lastIndex = proxyModel->index(block.firstIndex.row() + \
                block.items.count() - 1, q->modelColumn(), q->rootIndex());
-    QRect prevRect = q->visualRect(lastIndex);
+    const QRect prevRect = q->visualRect(lastIndex);
     int res = prevRect.height();
     QModelIndex prevIndex = proxyModel->index(lastIndex.row() - 1, q->modelColumn(), \
q->rootIndex());  if (!prevIndex.isValid()) {


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

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