18 #include "AssetsManager.h"
24 addLabel(tr(
"Full name:"),
"fullname");
25 addLabel(tr(
"Fallback:"),
"fallback");
27 addLabel(tr(
"Extension:"),
"extension");
28 addWidget(tr(
"Defined faces:"),
myImages =
new QLabel(
this),
true,
nullptr,
nullptr);
29 addWidget(tr(
"License information:"),
myLicenses =
new QLabel(
this),
true,
nullptr,
nullptr);
34 size_t count = 0, total = getManager()->faces()->count(), licenses = 0;
36 getManager()->faces()->each([&] (
const Face * face) {
37 if (face->number <
myItem->allocated &&
myItem->faces[face->number].datalen > 0) {
39 if (myLicenseManager->getForFace(face->name).count(myItem->prefix) > 0) {
45 uint8_t percent = count * 100 / total;
46 if (percent == 100 && count < total)
49 myImages->setText(QString(tr(
"%1 out of %2 (%3%)")).arg(count).arg(total).arg(percent));
51 percent = licenses * 100 / count;
52 if (percent == 100 && licenses < count)
54 myLicenses->setText(QString(tr(
"%1 faces have license information out of %2 (%3%)")).arg(licenses).arg(count).arg(percent));