add SidebarGenerator, add Pictures path to Sidebar/StandardPaths

This commit is contained in:
Rafael 2016-03-29 15:14:49 +02:00
parent 95968f5986
commit e7ba721687
8 changed files with 110 additions and 73 deletions

View file

@ -82,6 +82,15 @@ QString StandardPaths::moviesLocation()
#endif
}
QString StandardPaths::picturesLocation()
{
#if QT_VERSION >= 0x050000
return QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);
#else
return QDesktopServices::storageLocation(QDesktopServices::PicturesLocation);
#endif
}
QString StandardPaths::fontsLocation()
{
#if QT_VERSION >= 0x050000