Add default tool tips to text marks

The default tool tip should describe the general purpose
of the mark which is displayed in the UI when no tool tip
is explicitly set for the text mark.

Change-Id: I27aff26cf0f3458d454428e805a9b323191dc393
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
David Schulz
2016-08-16 14:17:48 +02:00
parent 5a40bddf08
commit 8b21f687c0
7 changed files with 33 additions and 0 deletions

View File

@@ -51,6 +51,12 @@ void initializeTextMarks()
Utils::Theme::ClangCodeModel_Warning_TextMarkColor);
TextEditor::TextMark::setCategoryColor(Core::Id(Constants::CLANG_ERROR),
Utils::Theme::ClangCodeModel_Error_TextMarkColor);
TextEditor::TextMark::setDefaultToolTip(Core::Id(Constants::CLANG_WARNING),
QApplication::translate("Clang Code Model Marks",
"Code Model Warning"));
TextEditor::TextMark::setDefaultToolTip(Core::Id(Constants::CLANG_ERROR),
QApplication::translate("Clang Code Model Marks",
"Code Model Error"));
}
void addProjectPanelWidget()