[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/kpat/libkcardgame
From: Parker Coates <parker.coates () kdemail ! net>
Date: 2011-02-01 20:57:19
Message-ID: 20110201205719.2AB81AC8AC () svn ! kde ! org
[Download RAW message or body]
SVN commit 1218294 by coates:
Use the new built-in timestamp functionality of KSharedDataCache.
M +2 -4 kabstractcarddeck.cpp
--- trunk/KDE/kdegames/kpat/libkcardgame/kabstractcarddeck.cpp #1218293:1218294
@@ -465,12 +465,10 @@
// doesn't really add that much benefit anyway.
d->cache->setPixmapCaching( false );
- QDateTime cacheTimeStamp;
- if ( !cacheFind( d->cache, timeStampKey, &cacheTimeStamp )
- || cacheTimeStamp < theme.lastModified() )
+ if ( d->cache->timestamp() < theme.lastModified().toTime_t() )
{
d->cache->clear();
- cacheInsert( d->cache, timeStampKey, theme.lastModified() );
+ d->cache->setTimestamp( theme.lastModified().toTime_t() );
}
d->originalCardSize = d->unscaledCardSize();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic