forked from qt-creator/qt-creator
ClangFormat: Grey out Clang-Format Style config when not overridden
Add feature to grey out the Clang-Format Style configuration widget after unchecking the 'Override' checkbox. Change-Id: I94bbb1f4436f3caeaed55d49582211257e480d0d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -24,6 +24,7 @@ public:
|
||||
QByteArray m_id;
|
||||
QString m_displayName;
|
||||
bool m_readOnly = false;
|
||||
bool m_temporarilyReadOnly = false;
|
||||
QString m_settingsSuffix;
|
||||
};
|
||||
|
||||
@@ -71,6 +72,16 @@ void ICodeStylePreferences::setReadOnly(bool on)
|
||||
d->m_readOnly = on;
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::setTemporarilyReadOnly(bool on)
|
||||
{
|
||||
d->m_temporarilyReadOnly = on;
|
||||
}
|
||||
|
||||
bool ICodeStylePreferences::isTemporarilyReadOnly() const
|
||||
{
|
||||
return d->m_temporarilyReadOnly;
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::setTabSettings(const TabSettings &settings)
|
||||
{
|
||||
if (d->m_tabSettings == settings)
|
||||
|
||||
Reference in New Issue
Block a user