Id Id::fromStringStatic(const QString& text) { Id id; if (!id.fromString(text)) qWarning("Invalid id: " + text); return id; }