forked from qt-creator/qt-creator
Refactor: add userResourcePath() accessor to ICore.
Access to the users private resource path (derived from the settings path) has been used in quite some places, so it's worth moving it to the core interface centrally. Reviewed-By: Thorbjorn Lindeijer
This commit is contained in:
@@ -233,6 +233,16 @@
|
||||
the place, since e.g. on Mac the resources are part of the application bundle.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn QString ICore::userResourcePath() const
|
||||
\brief Returns the absolute path in the users directory that is used for
|
||||
resources like project templates.
|
||||
|
||||
Use this method for finding the place for resources that the user may
|
||||
write to, e.g. to allow for custom palettes or templates.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QMainWindow *ICore::mainWindow() const
|
||||
\brief Returns the main application window.
|
||||
|
||||
Reference in New Issue
Block a user