qt: Add media history manager for recently used images

This commit is contained in:
cold-brewed
2022-08-30 17:18:51 -04:00
parent df0e12bccc
commit 9daa721d44
9 changed files with 564 additions and 14 deletions

View File

@@ -167,7 +167,13 @@ plat_fopen(const char *path, const char *mode)
FILE *
plat_fopen64(const char *path, const char *mode)
{
#ifdef Q_OS_MACOS
QFileInfo fi(path);
QString filename = fi.isRelative() ? usr_path + fi.filePath() : fi.filePath();
return fopen(filename.toUtf8().constData(), mode);
#else
return fopen(QString::fromUtf8(path).toLocal8Bit(), mode);
#endif
}
int