Skip to content
Snippets Groups Projects
Commit 067bab07 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

clean up resourcePath() impl

parent c5df1500
No related branches found
No related tags found
No related merge requests found
......@@ -134,13 +134,15 @@ QPrinter *CoreImpl::printer() const
return m_mainwindow->printer();
}
QString CoreImpl::resourcePath() const
{
#if defined(Q_OS_MAC)
return QDir::cleanPath(QCoreApplication::applicationDirPath()+QLatin1String("/../Resources"));
#ifdef Q_OS_MAC
# define SHARE_PATH "/../Resources"
#else
return QDir::cleanPath(QCoreApplication::applicationDirPath())+"/../share/qtcreator";
# define SHARE_PATH "/../share/qtcreator"
#endif
QString CoreImpl::resourcePath() const
{
return QDir::cleanPath(QCoreApplication::applicationDirPath() + QLatin1String(SHARE_PATH));
}
IContext *CoreImpl::currentContextObject() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment