update CMake configuration for AUR build & add PrivateInfoLabel for masked display of sensitive information

This commit is contained in:
uncor3
2025-11-08 15:09:07 +00:00
parent bdf248ce26
commit 5685f1ade0
11 changed files with 193 additions and 27 deletions
+19
View File
@@ -24,6 +24,7 @@
#include "iDescriptor-ui.h"
#include "iDescriptor.h"
#include "infolabel.h"
#include "privateinfolabel.h"
#include "toolboxwidget.h"
#include <QApplication>
#include <QDebug>
@@ -283,6 +284,24 @@ DeviceInfoWidget::DeviceInfoWidget(iDescriptorDevice *device, QWidget *parent)
createValueLabel(QString::fromStdString(
device->deviceInfo.productionDevice ? "Yes" : "No"))});
// Serial Number with privacy
if (!device->deviceInfo.serialNumber.empty()) {
infoItems.append(
{"Serial Number:",
new PrivateInfoLabel(
QString::fromStdString(device->deviceInfo.serialNumber),
this)});
}
// IMEI with privacy (Mobile Equipment Identifier)
if (!device->deviceInfo.mobileEquipmentIdentifier.empty()) {
infoItems.append(
{"IMEI:", new PrivateInfoLabel(
QString::fromStdString(
device->deviceInfo.mobileEquipmentIdentifier),
this)});
}
// Distribute items into the grid
int numRows = (infoItems.size() + 1) / 2;
for (int i = 0; i < numRows; ++i) {