diff options
author | David Schulz <david.schulz@theqtcompany.com> | 2016-04-28 12:51:34 +0200 |
---|---|---|
committer | David Schulz <david.schulz@theqtcompany.com> | 2016-05-31 12:58:19 +0000 |
commit | d21cd57e13b9f483f8e66d1baf16f5d2d5ad25c3 (patch) | |
tree | ac522470ec4a83e5745b14af791709352af31758 /src/plugins/texteditor/completionsettings.cpp | |
parent | e108d6fe48709cb92a99a9ab07f78928c24a645e (diff) | |
download | qt-creator-d21cd57e13b9f483f8e66d1baf16f5d2d5ad25c3.tar.gz |
Editor: Animate automatic completed text.
This gives a clear hint that something has changed.
And gets the attention of the author in the case he didn't
expect some kind of automatic brace or quote completion.
Change-Id: I33e383db9a1e797ecb285a407e46671f41be7051
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/completionsettings.cpp')
-rw-r--r-- | src/plugins/texteditor/completionsettings.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/completionsettings.cpp b/src/plugins/texteditor/completionsettings.cpp index 49e29ba848..325b758028 100644 --- a/src/plugins/texteditor/completionsettings.cpp +++ b/src/plugins/texteditor/completionsettings.cpp @@ -38,6 +38,7 @@ static const char surroundingAutoQuotesKey[] = "SurroundingAutoQuotes"; static const char partiallyCompleteKey[] = "PartiallyComplete"; static const char spaceAfterFunctionNameKey[] = "SpaceAfterFunctionName"; static const char autoSplitStringsKey[] = "AutoSplitStrings"; +static const char animateAutoCompleteKey[] = "AnimateAutoComplete"; using namespace TextEditor; @@ -54,6 +55,7 @@ void CompletionSettings::toSettings(QSettings *s) const s->setValue(partiallyCompleteKey, m_partiallyComplete); s->setValue(spaceAfterFunctionNameKey, m_spaceAfterFunctionName); s->setValue(autoSplitStringsKey, m_autoSplitStrings); + s->setValue(animateAutoCompleteKey, m_animateAutoComplete); s->endGroup(); } @@ -82,6 +84,8 @@ void CompletionSettings::fromSettings(QSettings *s) s->value(spaceAfterFunctionNameKey, m_spaceAfterFunctionName).toBool(); m_autoSplitStrings = s->value(autoSplitStringsKey, m_autoSplitStrings).toBool(); + m_animateAutoComplete = + s->value(animateAutoCompleteKey, m_animateAutoComplete).toBool(); s->endGroup(); } @@ -97,5 +101,6 @@ bool CompletionSettings::equals(const CompletionSettings &cs) const && m_partiallyComplete == cs.m_partiallyComplete && m_spaceAfterFunctionName == cs.m_spaceAfterFunctionName && m_autoSplitStrings == cs.m_autoSplitStrings + && m_animateAutoComplete == cs.m_animateAutoComplete ; } |