forked from qt-creator/qt-creator
TextEditor: De-noise ICodeStylePreferences setup a bit
Change-Id: I6c3fcbb6ef17c7ca5771326b1444f057cc150e3d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -27,11 +27,11 @@
|
||||
|
||||
using namespace CppTools;
|
||||
|
||||
static const char settingsSuffixKey[] = "CodeStyleSettings";
|
||||
|
||||
CppCodeStylePreferences::CppCodeStylePreferences(QObject *parent) :
|
||||
ICodeStylePreferences(parent)
|
||||
{
|
||||
setSettingsSuffix("CodeStyleSettings");
|
||||
|
||||
connect(this, &CppCodeStylePreferences::currentValueChanged,
|
||||
this, &CppCodeStylePreferences::slotCurrentValueChanged);
|
||||
}
|
||||
@@ -89,11 +89,6 @@ void CppCodeStylePreferences::slotCurrentValueChanged(const QVariant &value)
|
||||
emit currentCodeStyleSettingsChanged(value.value<CppCodeStyleSettings>());
|
||||
}
|
||||
|
||||
QString CppCodeStylePreferences::settingsSuffix() const
|
||||
{
|
||||
return QLatin1String(settingsSuffixKey);
|
||||
}
|
||||
|
||||
void CppCodeStylePreferences::toMap(const QString &prefix, QVariantMap *map) const
|
||||
{
|
||||
ICodeStylePreferences::toMap(prefix, map);
|
||||
|
||||
Reference in New Issue
Block a user