Use non deprecated QStandardPaths and remove Qt4 alternative

This commit is contained in:
Luis Ángel San Martín 2021-10-02 07:58:19 +02:00
parent dc8c6e23e9
commit 5fbd100449

View File

@ -4,11 +4,7 @@ using namespace YACReader;
QString YACReader::getSettingsPath()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::DataLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::DataLocation);
#endif
return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
}
QString YACReader::colorToName(LabelColors colors)