OSDN Git Service

Snippets: Enable editor's parentheses matching.
authorLeandro Melo <leandro.melo@nokia.com>
Mon, 8 Nov 2010 10:45:39 +0000 (11:45 +0100)
committerLeandro Melo <leandro.melo@nokia.com>
Wed, 8 Dec 2010 16:22:09 +0000 (17:22 +0100)
src/plugins/texteditor/snippets/snippeteditor.cpp

index ca59955..714e31f 100644 (file)
@@ -55,6 +55,7 @@ SnippetEditor::SnippetEditor(QWidget *parent) : BaseTextEditor(parent)
     setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
     setHighlightCurrentLine(false);
     setLineNumbersVisible(false);
+    setParenthesesMatchingEnabled(true);
 }
 
 SnippetEditor::~SnippetEditor()