forked from qt-creator/qt-creator
ClangFormat: Fix code style preferences are grayed out
Code style preferences are grayed out even when formatting mode is set to disable. Fixes: QTCREATORBUG-29129 Change-Id: Icf82fa0751f9291122c2af55111b6bd5fac85c7b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -25,6 +25,7 @@ public:
|
||||
QString m_displayName;
|
||||
bool m_readOnly = false;
|
||||
bool m_temporarilyReadOnly = false;
|
||||
bool m_isAdditionalTabDisabled = false;
|
||||
QString m_settingsSuffix;
|
||||
};
|
||||
|
||||
@@ -82,6 +83,16 @@ bool ICodeStylePreferences::isTemporarilyReadOnly() const
|
||||
return d->m_temporarilyReadOnly;
|
||||
}
|
||||
|
||||
bool ICodeStylePreferences::isAdditionalTabDisabled() const
|
||||
{
|
||||
return d->m_isAdditionalTabDisabled;
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::setIsAdditionalTabDisabled(bool on)
|
||||
{
|
||||
d->m_isAdditionalTabDisabled = on;
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::setTabSettings(const TabSettings &settings)
|
||||
{
|
||||
if (d->m_tabSettings == settings)
|
||||
|
||||
Reference in New Issue
Block a user