window title changes, standard paths completed

This commit is contained in:
Rafael 2016-03-28 14:10:59 +02:00
parent 96c6d5072d
commit 517f446d12
4 changed files with 78 additions and 1 deletions

View file

@ -25,6 +25,25 @@
StandardPaths::StandardPaths()
{
}
QString StandardPaths::applicationsLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::ApplicationsLocation);
#endif
}
QString StandardPaths::cacheLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
#endif
}
QString StandardPaths::dataLocation()
@ -53,3 +72,48 @@ QString StandardPaths::documentsLocation()
return QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
#endif
}
QString StandardPaths::moviesLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::MoviesLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::MoviesLocation);
#endif
}
QString StandardPaths::fontsLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::FontsLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::FontsLocation);
#endif
}
QString StandardPaths::homeLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::HomeLocation);
#endif
}
QString StandardPaths::musicLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::MusicLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::MusicLocation);
#endif
}
QString StandardPaths::tempLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::TempLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::TempLocation);
#endif
}