Utils: Rework aspect implementation

This avoids some repetition and could be a step towards
having type storage in (or rather accessible from) the base,
so we can have aspects for more complex data (treemodels...)
that are not easily converted to QVariant.

Change-Id: I9797b3d5646195705212db1830d2b415291ac651
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-06-26 11:02:42 +02:00
parent 900ea82fd1
commit 379e7f906e
30 changed files with 463 additions and 643 deletions

View File

@@ -146,8 +146,8 @@ GitSettings::GitSettings()
st
};
});
connect(&binaryPath, &StringAspect::valueChanged, this, [this] { tryResolve = true; });
connect(&path, &StringAspect::valueChanged, this, [this] { tryResolve = true; });
connect(&binaryPath, &BaseAspect::changed, this, [this] { tryResolve = true; });
connect(&path, &BaseAspect::changed, this, [this] { tryResolve = true; });
}
FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const