forked from qt-creator/qt-creator
CppEditor: Add quickfix for converting a function call
... to a Qt meta-method invocation. Fixes: QTCREATORBUG-15972 Change-Id: Id84c83c5832cef32a877a451b0931ec47d2afe9d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -617,5 +617,14 @@ private:
|
||||
TextEditor::QuickFixOperations &result) override;
|
||||
};
|
||||
|
||||
//! Converts a normal function call into a meta method invocation, if the functions is
|
||||
//! marked as invokable.
|
||||
class ConvertToMetaMethodCall : public CppQuickFixFactory
|
||||
{
|
||||
private:
|
||||
void doMatch(const CppQuickFixInterface &interface,
|
||||
TextEditor::QuickFixOperations &result) override;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CppEditor
|
||||
|
||||
Reference in New Issue
Block a user