// been touched between the object creation and now, we refresh the file
// information.
d->refresh();
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
+ return d->fi.lastModified().toSecsSinceEpoch();
+#else
return d->fi.lastModified().toTime_t();
+#endif
+
}
return 0;
}
- char * beg = static_cast<char*>(mm);
- char * end = beg + info.st_size;
+ unsigned char * beg = static_cast<unsigned char*>(mm);
+ unsigned char * end = beg + info.st_size;
result = support::checksum(beg, end);
#endif
hash = hash.toHex();
mname = fromqstr(QString(hash));
- mname = mname + "_" + onlyFileName();
+ mname = "export_" + onlyFileName() + "_" + mname;
}
// The mangled name must be a valid LaTeX name.