Fix build error: convert qdatetime to uint

This commit is contained in:
Gregor Tätzner 2013-06-05 19:41:58 +02:00
parent 3074728198
commit ad6f58a16c
3 changed files with 3 additions and 4 deletions

3
README
View File

@ -1,2 +1 @@
See also: http://community.kde.org/Plasma#Plasma_Workspaces_2

View File

@ -152,7 +152,7 @@ bool ThemePrivate::useCache()
// application is not running.
const QFile f(cacheFile);
const QFileInfo fileInfo(f);
if (fileInfo.lastModified().toTime_t() > uint(pixmapCache->lastModifiedTime())) {
if (fileInfo.lastModified().toTime_t() > uint(pixmapCache->lastModifiedTime().toTime_t())) {
discardCache(PixmapCache | SvgElementsCache);
}
}

View File

@ -296,7 +296,7 @@ bool Theme::useGlobalSettings() const
bool Theme::findInCache(const QString &key, QPixmap &pix, unsigned int lastModified)
{
if (lastModified != 0 && d->useCache() && lastModified > uint(d->pixmapCache->lastModifiedTime())) {
if (lastModified != 0 && d->useCache() && lastModified > uint(d->pixmapCache->lastModifiedTime().toTime_t())) {
return false;
}