[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/utils
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2010-04-18 13:58:47
Message-ID: 20100418140122.283FCAC89C () svn ! kde ! org
[Download RAW message or body]
SVN commit 1116043 by cullmann:
start to introduce Kate::TextCursor in template handler, less smart
M +3 -6 katetemplatehandler.cpp
M +2 -1 katetemplatehandler.h
--- trunk/KDE/kdelibs/kate/utils/katetemplatehandler.cpp #1116042:1116043
@@ -194,10 +194,7 @@
}
delete m_wholeTemplateRange;
-
- if ( m_finalCursorPosition ) {
- delete m_finalCursorPosition;
- }
+ delete m_finalCursorPosition;
delete this;
}
@@ -641,9 +638,9 @@
}
if ( finalCursorPosition.isValid() ) {
- m_finalCursorPosition = m_doc->newSmartCursor(finalCursorPosition);
+ m_finalCursorPosition = m_doc->newTextCursor(finalCursorPosition);
} else {
- m_finalCursorPosition = m_doc->newSmartCursor(Cursor(line, column));
+ m_finalCursorPosition = m_doc->newTextCursor(Cursor(line, column));
}
if ( ranges.isEmpty() ) {
--- trunk/KDE/kdelibs/kate/utils/katetemplatehandler.h #1116042:1116043
@@ -42,6 +42,7 @@
namespace Kate {
class TextRange;
+ class TextCursor;
}
/**
@@ -236,7 +237,7 @@
/// When the cursor moves outside it, the template handler gets closed.
Kate::TextRange *m_wholeTemplateRange;
/// Position of the (last) occurrence of ${cursor} in the template string.
- KTextEditor::SmartCursor* m_finalCursorPosition;
+ Kate::TextCursor *m_finalCursorPosition;
/// The last caret position during editing.
KTextEditor::Cursor m_lastCaretPosition;
/// SmartRanges that are still in this list have not yet been changed. Hence they'll
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic