From 8b21f687c0c81f309290343a6d2b9caba1eb93f0 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 16 Aug 2016 14:17:48 +0200 Subject: 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 --- src/plugins/clangcodemodel/clangcodemodelplugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp') diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp index 1b435f95a8..ba1bc10376 100644 --- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp +++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp @@ -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() -- cgit v1.2.1