forked from qt-creator/qt-creator
Utils, all: Standardize on QtcSettings
Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -209,8 +209,8 @@ Tasks QmlProject::projectIssues(const Kit *k) const
|
||||
|
||||
bool QmlProject::isQtDesignStudio()
|
||||
{
|
||||
QSettings *settings = Core::ICore::settings();
|
||||
const QString qdsStandaloneEntry = "QML/Designer/StandAloneMode";
|
||||
QtcSettings *settings = Core::ICore::settings();
|
||||
const Key qdsStandaloneEntry = "QML/Designer/StandAloneMode";
|
||||
return settings->value(qdsStandaloneEntry, false).toBool();
|
||||
}
|
||||
|
||||
@@ -240,9 +240,9 @@ int QmlProject::preferedQtTarget(Target *target)
|
||||
|
||||
bool QmlProject::allowOnlySingleProject()
|
||||
{
|
||||
QSettings *settings = Core::ICore::settings();
|
||||
auto key = "QML/Designer/AllowMultipleProjects";
|
||||
return !settings->value(QString::fromUtf8(key), false).toBool();
|
||||
QtcSettings *settings = Core::ICore::settings();
|
||||
const Key key = "QML/Designer/AllowMultipleProjects";
|
||||
return !settings->value(key, false).toBool();
|
||||
}
|
||||
|
||||
} // namespace QmlProjectManager
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/fsengine/fileiconprovider.h>
|
||||
#include <utils/process.h>
|
||||
#include <utils/qtcsettings.h>
|
||||
|
||||
#include <QAction>
|
||||
#include <QDesktopServices>
|
||||
@@ -50,6 +51,7 @@
|
||||
#include <QTimer>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlProjectManager::Internal {
|
||||
|
||||
@@ -131,8 +133,8 @@ void QmlProjectPlugin::openQDS(const Utils::FilePath &fileName)
|
||||
|
||||
Utils::FilePath QmlProjectPlugin::qdsInstallationEntry()
|
||||
{
|
||||
QSettings *settings = Core::ICore::settings();
|
||||
const QString qdsInstallationEntry = "QML/Designer/DesignStudioInstallation"; //set in installer
|
||||
QtcSettings *settings = Core::ICore::settings();
|
||||
const Key qdsInstallationEntry = "QML/Designer/DesignStudioInstallation"; //set in installer
|
||||
|
||||
return Utils::FilePath::fromUserInput(settings->value(qdsInstallationEntry).toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user