blob: 1ef4d231a0e56f3a7f4835989ab1fd0e268ef953 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 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
|