forked from qt-creator/qt-creator
TextEditor: Clarify the UI hint of the "Declaration" style option
This setting currently only styles function declarations so let's make that clear to users by updating the visible description and renaming it to "Function Declaration". If we ever implement variable declaration styling, we need to again update the name + UI hint to reflect that capability. Change-Id: I1d9579d2915d5e69f92fb045ecdb641a79351112 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -315,8 +315,8 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
|
||||
Format declarationFormat;
|
||||
declarationFormat.setBold(true);
|
||||
formatDescr.emplace_back(C_DECLARATION,
|
||||
tr("Declaration"),
|
||||
tr("Declaration of a function, variable, and so on."),
|
||||
tr("Function Declaration"),
|
||||
tr("Style adjustments to function declarations."),
|
||||
declarationFormat,
|
||||
FormatDescription::ShowFontUnderlineAndRelativeControls);
|
||||
Format outputArgumentFormat;
|
||||
|
||||
Reference in New Issue
Block a user