Qt-Generic-MissingTrCall¶
Use QObject::tr() in QWidget constructors
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
missing_tr_call |
String literal must be wrapped in a call to QObject::tr(). |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
functions_expecting_translated_strings¶
functions_expecting_translated_strings : set[str] = {'QMessageBox::critical', 'QMessageBox::information', 'QMessageBox::question', 'QMessageBox::warning'}
ignored_string_literals¶
ignored_string_literals : set[str] = {''}