Commit 6ec0b259 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed debug output.

parent 653757e7
...@@ -1872,7 +1872,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e) ...@@ -1872,7 +1872,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
while (block.isValid()) { while (block.isValid()) {
QRectF r = blockBoundingRect(block).translated(offset); QRectF r = blockBoundingRect(block).translated(offset);
if (!d->m_highlightBlocksInfo.isEmpty()) { if (!d->m_highlightBlocksInfo.isEmpty()) {
int n = block.blockNumber(); int n = block.blockNumber();
...@@ -1896,7 +1896,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e) ...@@ -1896,7 +1896,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
} }
} }
} }
QTextLayout *layout = block.layout(); QTextLayout *layout = block.layout();
QTextOption option = layout->textOption(); QTextOption option = layout->textOption();
...@@ -3537,8 +3537,6 @@ void BaseTextEditor::_q_matchParentheses() ...@@ -3537,8 +3537,6 @@ void BaseTextEditor::_q_matchParentheses()
if (isReadOnly()) if (isReadOnly())
return; return;
qDebug() << "_q_matchParentheses()" << textCursor().position();
QTextCursor backwardMatch = textCursor(); QTextCursor backwardMatch = textCursor();
QTextCursor forwardMatch = textCursor(); QTextCursor forwardMatch = textCursor();
const TextBlockUserData::MatchType backwardMatchType = TextBlockUserData::matchCursorBackward(&backwardMatch); const TextBlockUserData::MatchType backwardMatchType = TextBlockUserData::matchCursorBackward(&backwardMatch);
...@@ -3548,13 +3546,11 @@ void BaseTextEditor::_q_matchParentheses() ...@@ -3548,13 +3546,11 @@ void BaseTextEditor::_q_matchParentheses()
if (backwardMatchType == TextBlockUserData::NoMatch && forwardMatchType == TextBlockUserData::NoMatch) { if (backwardMatchType == TextBlockUserData::NoMatch && forwardMatchType == TextBlockUserData::NoMatch) {
setExtraSelections(ParenthesesMatchingSelection, extraSelections); // clear setExtraSelections(ParenthesesMatchingSelection, extraSelections); // clear
qDebug() << "no match";
return; return;
} }
int animatePosition = -1; int animatePosition = -1;
if (backwardMatch.hasSelection()) { if (backwardMatch.hasSelection()) {
qDebug() << "backward match";
QTextEdit::ExtraSelection sel; QTextEdit::ExtraSelection sel;
if (backwardMatchType == TextBlockUserData::Mismatch) { if (backwardMatchType == TextBlockUserData::Mismatch) {
sel.cursor = backwardMatch; sel.cursor = backwardMatch;
...@@ -3583,7 +3579,6 @@ void BaseTextEditor::_q_matchParentheses() ...@@ -3583,7 +3579,6 @@ void BaseTextEditor::_q_matchParentheses()
} }
if (forwardMatch.hasSelection()) { if (forwardMatch.hasSelection()) {
qDebug() << "forward match";
QTextEdit::ExtraSelection sel; QTextEdit::ExtraSelection sel;
if (forwardMatchType == TextBlockUserData::Mismatch) { if (forwardMatchType == TextBlockUserData::Mismatch) {
sel.cursor = forwardMatch; sel.cursor = forwardMatch;
...@@ -3867,7 +3862,7 @@ void BaseTextEditor::setDisplaySettings(const DisplaySettings &ds) ...@@ -3867,7 +3862,7 @@ void BaseTextEditor::setDisplaySettings(const DisplaySettings &ds)
d->extraAreaHighlightCollapseBlockNumber = d->extraAreaHighlightCollapseColumn = -1; d->extraAreaHighlightCollapseBlockNumber = d->extraAreaHighlightCollapseColumn = -1;
d->m_highlightBlocksInfo = BaseTextEditorPrivateHighlightBlocks(); d->m_highlightBlocksInfo = BaseTextEditorPrivateHighlightBlocks();
} }
slotCursorPositionChanged(); slotCursorPositionChanged();
viewport()->update(); viewport()->update();
extraArea()->update(); extraArea()->update();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment