Reworked the QuickFix infrastructure.

This commit is contained in:
Erik Verbruggen
2010-07-26 13:06:33 +02:00
parent 5bf0ba0b85
commit d980e37e24
16 changed files with 2412 additions and 2148 deletions

View File

@@ -35,17 +35,10 @@
namespace QmlJSEditor {
namespace Internal {
class ComponentFromObjectDef: public QmlJSQuickFixOperation
class ComponentFromObjectDef: public QmlJSQuickFixFactory
{
public:
ComponentFromObjectDef(TextEditor::BaseTextEditor *editor);
virtual QString description() const;
virtual void createChanges();
virtual int check();
private:
QmlJS::AST::UiObjectDefinition *_objDef;
virtual QList<QmlJSQuickFixOperation::Ptr> match(const QmlJSQuickFixState &state);
};
} // namespace Internal