forked from qt-creator/qt-creator
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>
26 lines
656 B
C++
26 lines
656 B
C++
// Copyright (C) 2018 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#include "testeditormark.h"
|
|
|
|
#include "autotesttr.h"
|
|
#include "testresultspane.h"
|
|
|
|
namespace Autotest {
|
|
namespace Internal {
|
|
|
|
TestEditorMark::TestEditorMark(QPersistentModelIndex item, const Utils::FilePath &file, int line)
|
|
: TextEditor::TextMark(file, line, {Tr::tr("Auto Test"), Utils::Id(Constants::TASK_MARK_ID)}),
|
|
m_item(item)
|
|
{
|
|
}
|
|
|
|
void TestEditorMark::clicked()
|
|
{
|
|
auto instance = TestResultsPane::instance();
|
|
instance->showTestResult(m_item);
|
|
}
|
|
|
|
} // namespace Internal
|
|
} // namespace Autotest
|