forked from qt-creator/qt-creator
C++: Synchronize function decl/def refactoring.
When editing a function declaration or definition the code model may realize the same changes have to be applied somewhere else. A refactoring marker will pop up that can be clicked to perform the changes. Alternatively, press enter to apply. Change-Id: I2299a2ecfb6a8f87d4853fc7cfa99486f890a1d3 Reviewed-on: http://codereview.qt.nokia.com/2909 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -186,6 +186,22 @@ RefactoringFile::RefactoringFile()
|
||||
, m_openEditor(false)
|
||||
{ }
|
||||
|
||||
RefactoringFile::RefactoringFile(QTextDocument *document, const QString &fileName)
|
||||
: m_fileName(fileName)
|
||||
, m_refactoringChanges(0)
|
||||
, m_document(document)
|
||||
, m_editor(0)
|
||||
, m_openEditor(false)
|
||||
{ }
|
||||
|
||||
RefactoringFile::RefactoringFile(BaseTextEditorWidget *editor)
|
||||
: m_fileName(editor->file()->fileName())
|
||||
, m_refactoringChanges(0)
|
||||
, m_document(0)
|
||||
, m_editor(editor)
|
||||
, m_openEditor(false)
|
||||
{ }
|
||||
|
||||
RefactoringFile::RefactoringFile(const QString &fileName, RefactoringChanges *refactoringChanges)
|
||||
: m_fileName(fileName)
|
||||
, m_refactoringChanges(refactoringChanges)
|
||||
|
||||
Reference in New Issue
Block a user