forked from qt-creator/qt-creator
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -108,12 +108,12 @@ QWidget *ToolSettings::createPage(QWidget *parent)
|
||||
static QString getUserFilePath(const QString &proposalFileName)
|
||||
{
|
||||
static bool seeded = false;
|
||||
QDir resourceDir(ICore::instance()->userResourcePath());
|
||||
QDir resourceDir(ICore::userResourcePath());
|
||||
if (!resourceDir.exists(QLatin1String("externaltools")))
|
||||
resourceDir.mkpath(QLatin1String("externaltools"));
|
||||
QFileInfo fi(proposalFileName);
|
||||
const QString &suffix = QLatin1String(".") + fi.completeSuffix();
|
||||
const QString &newFilePath = ICore::instance()->userResourcePath()
|
||||
const QString &newFilePath = ICore::userResourcePath()
|
||||
+ QLatin1String("/externaltools/") + fi.baseName();
|
||||
int count = 0;
|
||||
QString tryPath = newFilePath + suffix;
|
||||
|
||||
Reference in New Issue
Block a user