[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kdgantt
From: Laurent Montel <montel () kde ! org>
Date: 2009-07-08 20:10:29
Message-ID: 1247083829.398697.15636.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 993513 by mlaurent:
Fix iterator
M +4 -4 kdganttproxymodel.cpp
--- trunk/koffice/kdgantt/kdganttproxymodel.cpp #993512:993513
@@ -166,10 +166,10 @@
{
int srole = role;
int scol = proxyIdx.column();
- 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;
+ 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;
QAbstractItemModel* model = sourceModel();
return model->setData( model->index( proxyIdx.row(), scol, mapToSource( \
proxyIdx.parent() ) ), value, srole );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic