summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/displaysettingspage.cpp
diff options
context:
space:
mode:
authorVasiliy Sorokin <sorokin.vasiliy@gmail.com>2012-10-11 14:46:18 +0400
committerDavid Schulz <david.schulz@digia.com>2012-10-18 11:05:05 +0200
commit6a90a1a74095034b57a6121e9e2b9849d86ebb77 (patch)
tree8f6db8b85f8ee13d6e373a63e48df777dea2386c /src/plugins/texteditor/displaysettingspage.cpp
parentf1cd57e2b240d418fe071e345ca9e738acad7ccc (diff)
downloadqt-creator-6a90a1a74095034b57a6121e9e2b9849d86ebb77.tar.gz
Add Highlight Matching Parentheses setting
Task-number: QTCREATORBUG-8008 Change-Id: If1989eb850e82636c735a319bc7c4950a01dd33c Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/texteditor/displaysettingspage.cpp')
-rw-r--r--src/plugins/texteditor/displaysettingspage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/displaysettingspage.cpp b/src/plugins/texteditor/displaysettingspage.cpp
index 930d7133e9..a95c434ba7 100644
--- a/src/plugins/texteditor/displaysettingspage.cpp
+++ b/src/plugins/texteditor/displaysettingspage.cpp
@@ -82,6 +82,7 @@ QWidget *DisplaySettingsPage::createPage(QWidget *parent)
<< ' ' << d->m_page->highlightBlocks->text()
<< ' ' << d->m_page->visualizeWhitespace->text()
<< ' ' << d->m_page->animateMatchingParentheses->text()
+ << ' ' << d->m_page->highlightMatchingParentheses->text()
<< ' ' << d->m_page->enableTextWrapping->text()
<< ' ' << d->m_page->autoFoldFirstComment->text()
<< ' ' << d->m_page->centerOnScroll->text();
@@ -119,6 +120,7 @@ void DisplaySettingsPage::settingsFromUI(DisplaySettings &displaySettings) const
displaySettings.m_highlightCurrentLine = d->m_page->highlightCurrentLine->isChecked();
displaySettings.m_highlightBlocks = d->m_page->highlightBlocks->isChecked();
displaySettings.m_animateMatchingParentheses = d->m_page->animateMatchingParentheses->isChecked();
+ displaySettings.m_highlightMatchingParentheses = d->m_page->highlightMatchingParentheses->isChecked();
displaySettings.m_markTextChanges = d->m_page->markTextChanges->isChecked();
displaySettings.m_autoFoldFirstComment = d->m_page->autoFoldFirstComment->isChecked();
displaySettings.m_centerCursorOnScroll = d->m_page->centerOnScroll->isChecked();
@@ -136,6 +138,7 @@ void DisplaySettingsPage::settingsToUI()
d->m_page->highlightCurrentLine->setChecked(displaySettings.m_highlightCurrentLine);
d->m_page->highlightBlocks->setChecked(displaySettings.m_highlightBlocks);
d->m_page->animateMatchingParentheses->setChecked(displaySettings.m_animateMatchingParentheses);
+ d->m_page->highlightMatchingParentheses->setChecked(displaySettings.m_highlightMatchingParentheses);
d->m_page->markTextChanges->setChecked(displaySettings.m_markTextChanges);
d->m_page->autoFoldFirstComment->setChecked(displaySettings.m_autoFoldFirstComment);
d->m_page->centerOnScroll->setChecked(displaySettings.m_centerCursorOnScroll);