mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Use non deprecated QStandardPaths and remove Qt4 alternative
This commit is contained in:
parent
dc8c6e23e9
commit
5fbd100449
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user