/* SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include #include inline QString photoImageProviderUri(const QStringView personUri) { return u"image://kpeople-avatar/" % QString::fromUtf8(personUri.toUtf8().toBase64()) % u"#" % QString::number(QRandomGenerator::system()->generate()); }