2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 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
|
|
|
|
2023-01-09 13:14:39 +01:00
|
|
|
#include "autotesttr.h"
|
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)
|
2023-01-09 13:14:39 +01:00
|
|
|
: TextEditor::TextMark(file, line, {Tr::tr("Auto Test"), 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
|