forked from qt-creator/qt-creator
C++ function links: Use line+column instead of offset for target.
It's more robust if text before the target is changed in a minor way. Change-Id: I48e27c5d194dd2dcff4b064bf59538b4660015d7 Reviewed-on: http://codereview.qt.nokia.com/3097 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -89,10 +89,12 @@ public:
|
||||
void apply(CPPEditorWidget *editor, bool jumpToMatch);
|
||||
void hideMarker(CPPEditorWidget *editor);
|
||||
void showMarker(CPPEditorWidget *editor);
|
||||
Utils::ChangeSet changes(const CPlusPlus::Snapshot &snapshot);
|
||||
Utils::ChangeSet changes(const CPlusPlus::Snapshot &snapshot, int targetOffset = -1);
|
||||
|
||||
QTextCursor linkSelection;
|
||||
int targetOffset;
|
||||
// 1-based line and column
|
||||
unsigned targetLine;
|
||||
unsigned targetColumn;
|
||||
QString targetInitial;
|
||||
|
||||
CPlusPlus::Document::Ptr sourceDocument;
|
||||
|
||||
Reference in New Issue
Block a user