aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/displaysettings.h
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2017-05-22 08:13:52 +0200
committerDavid Schulz <david.schulz@qt.io>2017-05-23 12:07:53 +0000
commitd42e867f441f90bf127c3fc8571b862bb4a9596a (patch)
treefcb66947975d94591e6d64105a11e7e25929fecb /src/plugins/texteditor/displaysettings.h
parentb289dbde3cfaabc4053039b65770cd6a16e4029c (diff)
TextEditor: Use default values for DisplaySettings members
Change-Id: I04a58ffd25d44e144d064fe691251ea136ed8c88 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor/displaysettings.h')
-rw-r--r--src/plugins/texteditor/displaysettings.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/plugins/texteditor/displaysettings.h b/src/plugins/texteditor/displaysettings.h
index 1bb2bd82734..08d20777682 100644
--- a/src/plugins/texteditor/displaysettings.h
+++ b/src/plugins/texteditor/displaysettings.h
@@ -36,26 +36,26 @@ namespace TextEditor {
class TEXTEDITOR_EXPORT DisplaySettings
{
public:
- DisplaySettings();
+ DisplaySettings() = default;
void toSettings(const QString &category, QSettings *s) const;
void fromSettings(const QString &category, const QSettings *s);
- bool m_displayLineNumbers;
- bool m_textWrapping;
- bool m_visualizeWhitespace;
- bool m_displayFoldingMarkers;
- bool m_highlightCurrentLine;
- bool m_highlightBlocks;
- bool m_animateMatchingParentheses;
- bool m_highlightMatchingParentheses;
- bool m_markTextChanges;
- bool m_autoFoldFirstComment;
- bool m_centerCursorOnScroll;
- bool m_openLinksInNextSplit;
- bool m_forceOpenLinksInNextSplit;
- bool m_displayFileEncoding;
- bool m_scrollBarHighlights;
+ bool m_displayLineNumbers = true;
+ bool m_textWrapping = false;
+ bool m_visualizeWhitespace = false;
+ bool m_displayFoldingMarkers = true;
+ bool m_highlightCurrentLine = false;
+ bool m_highlightBlocks = false;
+ bool m_animateMatchingParentheses = true;
+ bool m_highlightMatchingParentheses = true;
+ bool m_markTextChanges = true ;
+ bool m_autoFoldFirstComment = true;
+ bool m_centerCursorOnScroll = false;
+ bool m_openLinksInNextSplit = false;
+ bool m_forceOpenLinksInNextSplit = false;
+ bool m_displayFileEncoding = false;
+ bool m_scrollBarHighlights = true;
bool equals(const DisplaySettings &ds) const;
};