forked from qt-creator/qt-creator
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:
@@ -490,8 +490,8 @@ QString DebuggerSettings::dump()
|
||||
const int pos = key.indexOf('/');
|
||||
if (pos >= 0)
|
||||
key = key.mid(pos);
|
||||
const QString current = aspect->value().toString();
|
||||
const QString default_ = aspect->defaultValue().toString();
|
||||
const QString current = aspect->variantValue().toString();
|
||||
const QString default_ = aspect->defaultVariantValue().toString();
|
||||
QString setting = key + ": " + current + " (default: " + default_ + ')';
|
||||
if (current != default_)
|
||||
setting += " ***";
|
||||
|
||||
Reference in New Issue
Block a user