Debugger: Register common aspects

Change-Id: Iaa43758bdf0e5060830213ae744a2d0baedf6c15
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-07-21 12:37:43 +02:00
parent ece7ae6bb5
commit fa9601990b
2 changed files with 18 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ using SourcePathMap = QMap<QString, QString>;
class SourcePathMapAspect : public Utils::TypedAspect<SourcePathMap>
{
public:
SourcePathMapAspect();
explicit SourcePathMapAspect(Utils::AspectContainer *container);
~SourcePathMapAspect() override;
void fromMap(const QVariantMap &map) override;
@@ -43,23 +43,23 @@ public:
CommonSettings();
~CommonSettings();
Utils::BoolAspect useAlternatingRowColors;
Utils::BoolAspect useAnnotationsInMainEditor;
Utils::BoolAspect useToolTipsInMainEditor;
Utils::BoolAspect closeSourceBuffersOnExit;
Utils::BoolAspect closeMemoryBuffersOnExit;
Utils::BoolAspect raiseOnInterrupt;
Utils::BoolAspect breakpointsFullPathByDefault;
Utils::BoolAspect warnOnReleaseBuilds;
Utils::IntegerAspect maximalStackDepth;
Utils::BoolAspect useAlternatingRowColors{this};
Utils::BoolAspect useAnnotationsInMainEditor{this};
Utils::BoolAspect useToolTipsInMainEditor{this};
Utils::BoolAspect closeSourceBuffersOnExit{this};
Utils::BoolAspect closeMemoryBuffersOnExit{this};
Utils::BoolAspect raiseOnInterrupt{this};
Utils::BoolAspect breakpointsFullPathByDefault{this};
Utils::BoolAspect warnOnReleaseBuilds{this};
Utils::IntegerAspect maximalStackDepth{this};
Utils::BoolAspect fontSizeFollowsEditor;
Utils::BoolAspect switchModeOnExit;
Utils::BoolAspect showQmlObjectTree;
Utils::BoolAspect stationaryEditorWhileStepping;
Utils::BoolAspect forceLoggingToConsole;
Utils::BoolAspect fontSizeFollowsEditor{this};
Utils::BoolAspect switchModeOnExit{this};
Utils::BoolAspect showQmlObjectTree{this};
Utils::BoolAspect stationaryEditorWhileStepping{this};
Utils::BoolAspect forceLoggingToConsole{this};
SourcePathMapAspect sourcePathMap;
SourcePathMapAspect sourcePathMap{this};
Utils::BoolAspect *registerForPostMortem = nullptr;
};

View File

@@ -442,8 +442,8 @@ public:
};
SourcePathMapAspect::SourcePathMapAspect()
: d(new SourcePathMapAspectPrivate)
SourcePathMapAspect::SourcePathMapAspect(AspectContainer *container)
: TypedAspect(container), d(new SourcePathMapAspectPrivate)
{
}