MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / labelFor

Method labelFor

src/core/objects/object_query.cpp:355–395  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

353
354// static
355QString ObjectQuery::labelFor(ObjectQuery::Operator op)
356{
357 switch (op)
358 {
359 case OperatorIs:
360 //: Very short label
361 return tr("is");
362 case OperatorIsNot:
363 //: Very short label
364 return tr("is not");
365 case OperatorContains:
366 //: Very short label
367 return tr("contains");
368 case OperatorSearch:
369 //: Very short label
370 return tr("Search");
371 case OperatorObjectText:
372 //: Very short label
373 return tr("Text");
374
375 case OperatorAnd:
376 //: Very short label
377 return tr("and");
378 case OperatorOr:
379 //: Very short label
380 return tr("or");
381 case OperatorNot:
382 //: Very short label
383 return tr("not");
384
385 case OperatorSymbol:
386 //: Very short label
387 return tr("Symbol");
388
389 case OperatorInvalid:
390 //: Very short label
391 return tr("invalid");
392 }
393
394 Q_UNREACHABLE();
395}
396
397
398

Callers 1

writeCrtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected