[ai] Add rule about u""_q literal.

Esse commit está contido em:
John Preston
2026-04-27 12:13:16 +07:00
commit be37bed7bd
+12
Ver Arquivo
@@ -156,6 +156,18 @@ QString currentTitle = tr::lng_settings_title(tr::now);
rpl::producer<QString> nameProducer = GetNameProducer(); rpl::producer<QString> nameProducer = GetNameProducer();
``` ```
**Use `_q` for QString literals:**
Prefer the project literal `u"..."_q` instead of the verbose `QStringLiteral("...")` macro when creating `QString` values:
```cpp
// Prefer this:
auto text = u"Settings"_q;
// Instead of this:
auto text = QStringLiteral("Settings");
```
## API Usage ## API Usage
### API Schema Files ### API Schema Files