mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 08:14:29 -04:00 
			
		
		
		
	Use non deprecated QStandardPaths and remove Qt4 alternative
This commit is contained in:
		| @ -4,11 +4,7 @@ using namespace YACReader; | |||||||
|  |  | ||||||
| QString YACReader::getSettingsPath() | QString YACReader::getSettingsPath() | ||||||
| { | { | ||||||
| #if QT_VERSION >= 0x050000 |     return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation); | ||||||
|     return QStandardPaths::writableLocation(QStandardPaths::DataLocation); |  | ||||||
| #else |  | ||||||
|     return QDesktopServices::storageLocation(QDesktopServices::DataLocation); |  | ||||||
| #endif |  | ||||||
| } | } | ||||||
|  |  | ||||||
| QString YACReader::colorToName(LabelColors colors) | QString YACReader::colorToName(LabelColors colors) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user