mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
update CMake configuration for AUR build & add PrivateInfoLabel for masked display of sensitive information
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user