forked from qt-creator/qt-creator
CppEditor: simplify CppQuickFixOperation interface
Change-Id: Ib3ed82c7f07f80027b18471ffb7b3055fa74eb52 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -90,6 +90,9 @@ private:
|
||||
QString _description;
|
||||
};
|
||||
|
||||
typedef QList<QuickFixOperation::Ptr> QuickFixOperations;
|
||||
typedef QSharedPointer<const IAssistInterface> QuickFixInterface;
|
||||
|
||||
/*!
|
||||
The QuickFixFactory is responsible for generating QuickFixOperation s which are
|
||||
applicable to the given QuickFixState.
|
||||
@@ -107,10 +110,9 @@ class TEXTEDITOR_EXPORT QuickFixFactory: public QObject
|
||||
|
||||
public:
|
||||
QuickFixFactory(QObject *parent = 0);
|
||||
virtual ~QuickFixFactory();
|
||||
~QuickFixFactory();
|
||||
|
||||
virtual QList<QuickFixOperation::Ptr>
|
||||
matchingOperations(const QSharedPointer<const IAssistInterface> &interface) = 0;
|
||||
virtual void matchingOperations(const QuickFixInterface &interface, QuickFixOperations &result) = 0;
|
||||
};
|
||||
|
||||
} // namespace TextEditor
|
||||
|
||||
Reference in New Issue
Block a user