57 const QString _label =
label(c);
58 const QString _otherLabel = [d, c]() -> QString {
60 return d->translationContext ? c->
translate(d->translationContext, d->otherLabel)
61 : c->
qtTrId(d->otherLabel);
67 if (_label.isEmpty()) {
70 return c->
qtTrId(
"cutelyst-valdifferent-genvalerr")
71 .arg(!_otherLabel.isEmpty() ? _otherLabel : d->otherField);
76 return c->
qtTrId(
"cutelyst-valdifferent-genvalerr-label")
77 .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