forked from qt-creator/qt-creator
TextEditor: Add a convenience append method for quick fixes
Less noise on the user side. Change-Id: Ia5b495a1f9d3ec43623056d793f6771b3b84fd6b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -114,7 +114,7 @@ public:
|
||||
CppLocalRenaming m_localRenaming;
|
||||
|
||||
CppTools::SemanticInfo m_lastSemanticInfo;
|
||||
QList<QuickFixOperation::Ptr> m_quickFixes;
|
||||
QuickFixOperations m_quickFixes;
|
||||
|
||||
CppUseSelectionsUpdater m_useSelectionsUpdater;
|
||||
|
||||
@@ -474,8 +474,7 @@ bool CppEditorWidget::event(QEvent *e)
|
||||
|
||||
void CppEditorWidget::performQuickFix(int index)
|
||||
{
|
||||
QuickFixOperation::Ptr op = d->m_quickFixes.at(index);
|
||||
op->perform();
|
||||
d->m_quickFixes.at(index)->perform();
|
||||
}
|
||||
|
||||
void CppEditorWidget::processKeyNormally(QKeyEvent *e)
|
||||
|
||||
Reference in New Issue
Block a user