forked from qt-creator/qt-creator
Change-Id: I41d50e437b3bcfb964d2ef27541ea6a55855ec2f Reviewed-by: Orgad Shaneh <orgads@gmail.com>
29 lines
736 B
C++
29 lines
736 B
C++
// Copyright (C) 2020 Miklos Marton <martonmiklosqdev@gmail.com>
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
#pragma once
|
|
|
|
#include <utils/outputformatter.h>
|
|
|
|
#include <QRegularExpression>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class QMenu;
|
|
QT_END_NAMESPACE
|
|
|
|
namespace VcsBase {
|
|
|
|
class VcsOutputLineParser : public Utils::OutputLineParser
|
|
{
|
|
public:
|
|
VcsOutputLineParser();
|
|
void fillLinkContextMenu(QMenu *menu, const Utils::FilePath &workingDirectory, const QString &href);
|
|
bool handleVcsLink(const Utils::FilePath &workingDirectory, const QString &href);
|
|
|
|
private:
|
|
Result handleLine(const QString &text, Utils::OutputFormat format) override;
|
|
|
|
const QRegularExpression m_regexp;
|
|
};
|
|
|
|
}
|