add SidebarGenerator, add Pictures path to Sidebar/StandardPaths
This commit is contained in:
parent
95968f5986
commit
e7ba721687
8 changed files with 110 additions and 73 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue