forked from qt-creator/qt-creator
Editor: Allow to hide annotations for a group of text marks
The hiding is not persistent, so on the next Qt Creator start all annotations are visible again. This is meant to quickly get rid of annotations if there are to many irrelevant of a specific kind. Change-Id: I4862e56e0f5624f30aadda26efc9dea672ab1f57 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -33,9 +33,10 @@ static bool isWarning(QmlJS::Severity::Enum kind)
|
||||
return false;
|
||||
}
|
||||
|
||||
static Utils::Id cartegoryForSeverity(QmlJS::Severity::Enum kind)
|
||||
static TextMarkCategory cartegoryForSeverity(QmlJS::Severity::Enum kind)
|
||||
{
|
||||
return isWarning(kind) ? QMLJS_WARNING : QMLJS_ERROR;
|
||||
return isWarning(kind) ? TextMarkCategory{"QML Warning", QMLJS_WARNING}
|
||||
: TextMarkCategory{"QML Error", QMLJS_ERROR};
|
||||
}
|
||||
|
||||
QmlJSTextMark::QmlJSTextMark(const FilePath &fileName,
|
||||
|
||||
Reference in New Issue
Block a user