50 const QString _label =
label(c);
51 const QString _otherLabel = [d, c]() -> QString {
53 return d->translationContext ? c->
translate(d->translationContext, d->otherLabel)
54 : c->
qtTrId(d->otherLabel);
60 if (_label.isEmpty()) {
63 return c->
qtTrId(
"cutelyst-valdifferent-genvalerr")
64 .arg(!_otherLabel.isEmpty() ? _otherLabel : d->otherField);
69 return c->
qtTrId(
"cutelyst-valdifferent-genvalerr-label")
70 .arg(_label, !_otherLabel.isEmpty() ? _otherLabel : d->otherField);
QString translate(const char *context, const char *sourceText, const char *disambiguation=nullptr, int n=-1) const
QString qtTrId(const char *id, int n=-1) const