mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
parent
c1a66a8be9
commit
224dba819f
@ -427,6 +427,8 @@ void EntryPreviewWidget::updateEntryAdvancedTab()
|
|||||||
m_ui->entryAttributesTable->item(i, 0)->setFont(font);
|
m_ui->entryAttributesTable->item(i, 0)->setFont(font);
|
||||||
m_ui->entryAttributesTable->item(i, 0)->setTextAlignment(Qt::AlignTop | Qt::AlignLeft);
|
m_ui->entryAttributesTable->item(i, 0)->setTextAlignment(Qt::AlignTop | Qt::AlignLeft);
|
||||||
|
|
||||||
|
auto value = m_currentEntry->resolveMultiplePlaceholders(attributes->value(key));
|
||||||
|
|
||||||
if (attributes->isProtected(key)) {
|
if (attributes->isProtected(key)) {
|
||||||
// only show the reveal button on protected attributes
|
// only show the reveal button on protected attributes
|
||||||
auto button = new QToolButton();
|
auto button = new QToolButton();
|
||||||
@ -453,10 +455,10 @@ void EntryPreviewWidget::updateEntryAdvancedTab()
|
|||||||
m_ui->entryAttributesTable->setCellWidget(i, 1, button);
|
m_ui->entryAttributesTable->setCellWidget(i, 1, button);
|
||||||
m_ui->entryAttributesTable->setItem(i, 2, new QTableWidgetItem(QString("\u25cf").repeated(6)));
|
m_ui->entryAttributesTable->setItem(i, 2, new QTableWidgetItem(QString("\u25cf").repeated(6)));
|
||||||
} else {
|
} else {
|
||||||
m_ui->entryAttributesTable->setItem(i, 2, new QTableWidgetItem(attributes->value(key)));
|
m_ui->entryAttributesTable->setItem(i, 2, new QTableWidgetItem(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_ui->entryAttributesTable->item(i, 2)->setData(Qt::UserRole, attributes->value(key));
|
m_ui->entryAttributesTable->item(i, 2)->setData(Qt::UserRole, value);
|
||||||
m_ui->entryAttributesTable->item(i, 2)->setToolTip(tr("Double click to copy value"));
|
m_ui->entryAttributesTable->item(i, 2)->setToolTip(tr("Double click to copy value"));
|
||||||
m_ui->entryAttributesTable->item(i, 2)->setTextAlignment(Qt::AlignTop | Qt::AlignLeft);
|
m_ui->entryAttributesTable->item(i, 2)->setTextAlignment(Qt::AlignTop | Qt::AlignLeft);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user