aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/simplecodestylepreferences.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-01-28 18:48:32 +0100
committerhjk <hjk@qt.io>2020-01-29 06:30:48 +0000
commit2c865a771c1b9f6f2b8d32fc127ee0b29fda66c4 (patch)
tree5ee64746a0923fdd5c4b1941cccb6739d68aef44 /src/plugins/texteditor/simplecodestylepreferences.cpp
parente0c76647cecb13d6afd054ec6e22cc9e66df43b2 (diff)
TextEditor: De-noise ICodeStylePreferences setup a bit
Change-Id: I6c3fcbb6ef17c7ca5771326b1444f057cc150e3d Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/simplecodestylepreferences.cpp')
-rw-r--r--src/plugins/texteditor/simplecodestylepreferences.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/texteditor/simplecodestylepreferences.cpp b/src/plugins/texteditor/simplecodestylepreferences.cpp
index fd9de2269cc..fd2c8327c73 100644
--- a/src/plugins/texteditor/simplecodestylepreferences.cpp
+++ b/src/plugins/texteditor/simplecodestylepreferences.cpp
@@ -27,14 +27,12 @@
#include <QVariant>
-using namespace TextEditor;
-
-static const char settingsSuffixKey[] = "TabPreferences";
-
+namespace TextEditor {
SimpleCodeStylePreferences::SimpleCodeStylePreferences(QObject *parent)
: ICodeStylePreferences(parent)
{
+ setSettingsSuffix("TabPreferences");
}
@@ -48,9 +46,4 @@ void SimpleCodeStylePreferences::setValue(const QVariant &value)
Q_UNUSED(value)
}
-QString SimpleCodeStylePreferences::settingsSuffix() const
-{
- return QLatin1String(settingsSuffixKey);
-}
-
-
+} // TextEditor