2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 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
|
2015-08-24 18:26:09 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2015-08-24 18:26:09 +02:00
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
|
|
namespace TextEditor {
|
|
|
|
|
|
|
|
|
|
class AssistInterface;
|
|
|
|
|
|
|
|
|
|
class QuickFixOperation
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
QuickFixOperation(int priority = -1)
|
|
|
|
|
: _priority(priority)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
virtual ~QuickFixOperation() {}
|
|
|
|
|
|
|
|
|
|
virtual int priority() const { return _priority; }
|
|
|
|
|
void setPriority(int priority) { _priority = priority; }
|
|
|
|
|
|
|
|
|
|
virtual QString description() const { return _description; }
|
|
|
|
|
void setDescription(const QString &description) { _description = description; }
|
|
|
|
|
|
|
|
|
|
virtual void perform() = 0;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int _priority = -1;
|
|
|
|
|
QString _description;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|