Utils, all: Standardize on QtcSettings

Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-09-22 16:15:27 +02:00
parent 4629b0f69e
commit 342e066886
172 changed files with 955 additions and 874 deletions

View File

@@ -491,11 +491,11 @@ const char sourcePathMappingTargetKeyC[] = "Target";
void SourcePathMapAspect::writeSettings() const
{
const SourcePathMap sourcePathMap = value();
QSettings *s = qtcSettings();
QtcSettings *s = qtcSettings();
s->beginWriteArray(sourcePathMappingArrayNameC);
if (!sourcePathMap.isEmpty()) {
const QString sourcePathMappingSourceKey(sourcePathMappingSourceKeyC);
const QString sourcePathMappingTargetKey(sourcePathMappingTargetKeyC);
const Key sourcePathMappingSourceKey(sourcePathMappingSourceKeyC);
const Key sourcePathMappingTargetKey(sourcePathMappingTargetKeyC);
int i = 0;
for (auto it = sourcePathMap.constBegin(), cend = sourcePathMap.constEnd();
it != cend;
@@ -510,11 +510,11 @@ void SourcePathMapAspect::writeSettings() const
void SourcePathMapAspect::readSettings()
{
QSettings *s = qtcSettings();
QtcSettings *s = qtcSettings();
SourcePathMap sourcePathMap;
if (const int count = s->beginReadArray(sourcePathMappingArrayNameC)) {
const QString sourcePathMappingSourceKey(sourcePathMappingSourceKeyC);
const QString sourcePathMappingTargetKey(sourcePathMappingTargetKeyC);
const Key sourcePathMappingSourceKey(sourcePathMappingSourceKeyC);
const Key sourcePathMappingTargetKey(sourcePathMappingTargetKeyC);
for (int i = 0; i < count; ++i) {
s->setArrayIndex(i);
const QString key = s->value(sourcePathMappingSourceKey).toString();