diff options
author | David Schulz <david.schulz@qt.io> | 2022-06-13 09:04:09 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-06-16 06:24:27 +0000 |
commit | f81afa455609a06482b5cd95ec80f7271ee476ac (patch) | |
tree | ebd30858b96a6717a6192968ce377f2b87cbdeff /src/plugins/texteditor/texteditorsettings.cpp | |
parent | cc4c12b2810415505f8d267a389b8bcbae74f9dd (diff) |
TextEditor: adjust default coco colors and controls
Change-Id: I6fa4d5a65067d58e07be974e6ccc349030a03a53
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditorsettings.cpp')
-rw-r--r-- | src/plugins/texteditor/texteditorsettings.cpp | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp index 630fbd440a..ed840b1d42 100644 --- a/src/plugins/texteditor/texteditorsettings.cpp +++ b/src/plugins/texteditor/texteditorsettings.cpp @@ -373,46 +373,57 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats() tr("Names of static fields or member functions."), FormatDescription::ShowAllControls); + const auto cocoControls = FormatDescription::ShowControls( + FormatDescription::ShowAllAbsoluteControls | FormatDescription::ShowRelativeControls); formatDescr.emplace_back(C_COCO_CODE_ADDED, tr("Code Coverage Added Code"), tr("New code that was not checked for tests."), - FormatDescription::ShowAllControls); + cocoControls); formatDescr.emplace_back(C_COCO_PARTIALLY_COVERED, tr("Partially Covered Code"), tr("Partial branch/condition coverage."), - FormatDescription::ShowAllControls); + Qt::darkYellow, + cocoControls); formatDescr.emplace_back(C_COCO_NOT_COVERED, tr("Uncovered Code"), tr("Not covered at all."), - FormatDescription::ShowAllControls); + Qt::red, + cocoControls); formatDescr.emplace_back(C_COCO_FULLY_COVERED, tr("Fully Covered Code"), tr("Fully covered code."), - FormatDescription::ShowAllControls); + Qt::green, + cocoControls); formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED, tr("Manually Validated Code"), tr("User added validation."), - FormatDescription::ShowAllControls); + Qt::blue, + cocoControls); formatDescr.emplace_back(C_COCO_DEAD_CODE, tr("Code Coverage Dead Code"), tr("Unreachable code."), - FormatDescription::ShowAllControls); + Qt::magenta, + cocoControls); formatDescr.emplace_back(C_COCO_EXECUTION_COUNT_TOO_LOW, tr("Code Coverage Execution Count Too Low"), tr("Minimum count not reached."), - FormatDescription::ShowAllControls); + Qt::red, + cocoControls); formatDescr.emplace_back(C_COCO_NOT_COVERED_INFO, tr("Implicitly Not Covered Code"), tr("PLACEHOLDER"), - FormatDescription::ShowAllControls); + Qt::red, + cocoControls); formatDescr.emplace_back(C_COCO_COVERED_INFO, tr("Implicitly Covered Code"), tr("PLACEHOLDER"), - FormatDescription::ShowAllControls); + Qt::green, + cocoControls); formatDescr.emplace_back(C_COCO_MANUALLY_VALIDATED_INFO, tr("Implicit Manual Coverage Validation"), tr("PLACEHOLDER"), - FormatDescription::ShowAllControls); + Qt::blue, + cocoControls); return formatDescr; } |