2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2018-05-03 23:29:18 +03:00
|
|
|
|
|
|
|
|
#include "testeditormark.h"
|
2020-10-09 13:07:55 +02:00
|
|
|
|
2018-05-03 23:29:18 +03:00
|
|
|
#include "testresultspane.h"
|
|
|
|
|
|
|
|
|
|
namespace Autotest {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2019-05-28 13:49:26 +02:00
|
|
|
TestEditorMark::TestEditorMark(QPersistentModelIndex item, const Utils::FilePath &file, int line)
|
2020-06-26 13:59:38 +02:00
|
|
|
: TextEditor::TextMark(file, line, Utils::Id(Constants::TASK_MARK_ID)),
|
2018-05-03 23:29:18 +03:00
|
|
|
m_item(item)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TestEditorMark::clicked()
|
|
|
|
|
{
|
|
|
|
|
auto instance = TestResultsPane::instance();
|
|
|
|
|
instance->showTestResult(m_item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Autotest
|