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:
@@ -68,7 +68,10 @@ class BreakpointMarker : public TextEditor::TextMark
|
||||
{
|
||||
public:
|
||||
BreakpointMarker(const Breakpoint &bp, const FilePath &fileName, int lineNumber)
|
||||
: TextMark(fileName, lineNumber, Constants::TEXT_MARK_CATEGORY_BREAKPOINT), m_bp(bp)
|
||||
: TextMark(fileName,
|
||||
lineNumber,
|
||||
{Tr::tr("Breakpoint"), Constants::TEXT_MARK_CATEGORY_BREAKPOINT})
|
||||
, m_bp(bp)
|
||||
{
|
||||
setColor(Theme::Debugger_Breakpoint_TextMarkColor);
|
||||
setDefaultToolTip(Tr::tr("Breakpoint"));
|
||||
@@ -126,7 +129,10 @@ class GlobalBreakpointMarker : public TextEditor::TextMark
|
||||
{
|
||||
public:
|
||||
GlobalBreakpointMarker(GlobalBreakpoint gbp, const FilePath &fileName, int lineNumber)
|
||||
: TextMark(fileName, lineNumber, Constants::TEXT_MARK_CATEGORY_BREAKPOINT), m_gbp(gbp)
|
||||
: TextMark(fileName,
|
||||
lineNumber,
|
||||
{Tr::tr("Breakpoint"), Constants::TEXT_MARK_CATEGORY_BREAKPOINT})
|
||||
, m_gbp(gbp)
|
||||
{
|
||||
setDefaultToolTip(Tr::tr("Breakpoint"));
|
||||
setPriority(TextEditor::TextMark::NormalPriority);
|
||||
|
||||
Reference in New Issue
Block a user