}
-FileName::FileName(FileName && rhs) noexcept
- : d(rhs.d)
-{
- rhs.d = nullptr;
-}
-
-
FileName::FileName(FileName const & rhs, string const & suffix) : d(new Private)
{
set(rhs, suffix);
}
-FileName & FileName::operator=(FileName && rhs) noexcept
-{
- auto temp = rhs.d;
- rhs.d = d;
- d = temp;
- return *this;
-}
-
-
bool FileName::empty() const
{
return d->name.empty();
// 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
+
}
#endif
hash = hash.toHex();
mname = fromqstr(QString(hash));
- mname = mname + "_" + onlyFileName();
+ mname = "export_" + onlyFileName() + "_" + mname;
}
// The mangled name must be a valid LaTeX name.