Commit 067bab07 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

clean up resourcePath() impl

parent c5df1500
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment