Fix build error: convert qdatetime to uint
This commit is contained in:
parent
3074728198
commit
ad6f58a16c
@ -152,7 +152,7 @@ bool ThemePrivate::useCache()
|
|||||||
// application is not running.
|
// application is not running.
|
||||||
const QFile f(cacheFile);
|
const QFile f(cacheFile);
|
||||||
const QFileInfo fileInfo(f);
|
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);
|
discardCache(PixmapCache | SvgElementsCache);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -296,7 +296,7 @@ bool Theme::useGlobalSettings() const
|
|||||||
|
|
||||||
bool Theme::findInCache(const QString &key, QPixmap &pix, unsigned int lastModified)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user