forked from qt-creator/qt-creator
C++ function link: Disable function links on name change.
Change-Id: Ib5e3a3a381568347a7a465f956f7daad15f10ab0 Reviewed-on: http://codereview.qt.nokia.com/3596 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -71,6 +71,7 @@ private slots:
|
||||
|
||||
private:
|
||||
QTextCursor m_scannedSelection;
|
||||
QTextCursor m_nameSelection;
|
||||
QFutureWatcher<QSharedPointer<FunctionDeclDefLink> > m_watcher;
|
||||
};
|
||||
|
||||
@@ -92,6 +93,11 @@ public:
|
||||
Utils::ChangeSet changes(const CPlusPlus::Snapshot &snapshot, int targetOffset = -1);
|
||||
|
||||
QTextCursor linkSelection;
|
||||
|
||||
// stored to allow aborting when the name is changed
|
||||
QTextCursor nameSelection;
|
||||
QString nameInitial;
|
||||
|
||||
// 1-based line and column
|
||||
unsigned targetLine;
|
||||
unsigned targetColumn;
|
||||
|
||||
Reference in New Issue
Block a user