diff --git a/src/plugins/cpaster/CodePaster.pluginspec b/src/plugins/cpaster/CodePaster.pluginspec index 2ddd73902e5f4f8181d5cfb756520a44cce5d5c5..7a1be0b876349228a2ad73a6b1576229ad8e5e93 100644 --- a/src/plugins/cpaster/CodePaster.pluginspec +++ b/src/plugins/cpaster/CodePaster.pluginspec @@ -1,4 +1,4 @@ -<plugin name="CodePaster" version="0.1" compatVersion="0.1"> +<plugin name="CodePaster" version="0.9.1" compatVersion="0.9.1"> <vendor>Nokia Corporation</vendor> <copyright>(C) 2008 Nokia Corporation</copyright> <license>Nokia Technology Preview License Agreement</license> diff --git a/src/plugins/git/ScmGit.pluginspec b/src/plugins/git/ScmGit.pluginspec index 689cc30a579ffebdbe624cd3a9e4da4f396772be..1f511448a07ff34696292ab6db6e9047185facb0 100644 --- a/src/plugins/git/ScmGit.pluginspec +++ b/src/plugins/git/ScmGit.pluginspec @@ -1,4 +1,4 @@ -<plugin name="ScmGit" version="0.1" compatVersion="0.1"> +<plugin name="ScmGit" version="0.9.1" compatVersion="0.9.1"> <vendor>Nokia Corporation</vendor> <copyright>(C) 2008 Nokia Corporation</copyright> <license>Nokia Technology Preview License Agreement</license> diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 49d29b75c93e5f8fe030fb7e6d38de05808c8f8b..82a4201b264576bdc79dacc33b6488bc32695357 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -602,29 +602,44 @@ void BaseTextEditor::slotSelectionChanged() void BaseTextEditor::gotoBlockStart() { QTextCursor cursor = textCursor(); - if (TextBlockUserData::findPreviousOpenParenthesis(&cursor, false)) + if (TextBlockUserData::findPreviousOpenParenthesis(&cursor, false)) { setTextCursor(cursor); + _q_matchParentheses(); + } } void BaseTextEditor::gotoBlockEnd() { QTextCursor cursor = textCursor(); - if (TextBlockUserData::findNextClosingParenthesis(&cursor, false)) + if (TextBlockUserData::findNextClosingParenthesis(&cursor, false)) { setTextCursor(cursor); + _q_matchParentheses(); + } } void BaseTextEditor::gotoBlockStartWithSelection() { QTextCursor cursor = textCursor(); - if (TextBlockUserData::findPreviousOpenParenthesis(&cursor, true)) + if (TextBlockUserData::findPreviousOpenParenthesis(&cursor, true)) { setTextCursor(cursor); + _q_matchParentheses(); + } } void BaseTextEditor::gotoBlockEndWithSelection() { QTextCursor cursor = textCursor(); - if (TextBlockUserData::findNextClosingParenthesis(&cursor, true)) + if (TextBlockUserData::findNextClosingParenthesis(&cursor, true)) { setTextCursor(cursor); + _q_matchParentheses(); + } +} + +static QTextCursor flippedCursor(const QTextCursor &cursor) { + QTextCursor flipped = cursor; + flipped.clearSelection(); + flipped.setPosition(cursor.anchor(), QTextCursor::KeepAnchor); + return flipped; } void BaseTextEditor::selectBlockUp() @@ -640,7 +655,8 @@ void BaseTextEditor::selectBlockUp() return; if (!TextBlockUserData::findNextClosingParenthesis(&cursor, true)) return; - setTextCursor(cursor); + setTextCursor(flippedCursor(cursor)); + _q_matchParentheses(); } void BaseTextEditor::selectBlockDown() @@ -663,7 +679,8 @@ void BaseTextEditor::selectBlockDown() if ( cursor != d->m_selectBlockAnchor) TextBlockUserData::findNextClosingParenthesis(&cursor, true); - setTextCursor(cursor); + setTextCursor(flippedCursor(cursor)); + _q_matchParentheses(); }