diff options
author | Saturneric <[email protected]> | 2021-05-31 14:19:14 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-05-31 14:19:14 +0000 |
commit | dff37c4a6dadf81924d535939ce6ac288506654d (patch) | |
tree | a00af3d47ce2c9f9bea5dfe432102c2ebe1a9d19 /src/ui/keypair_details/KeyPairUIDTab.cpp | |
parent | Add a copyright statement to the header of some files. (diff) | |
download | GpgFrontend-dff37c4a6dadf81924d535939ce6ac288506654d.tar.gz GpgFrontend-dff37c4a6dadf81924d535939ce6ac288506654d.zip |
Write a text logo for never expiring.
Adjust the UI of the key details interface
Set the minimum length and width of the key details window.
Adjust the structure and layout of each tab page of key details.
Adjust part of the interface UI and text description.
Add revocation parentheses for signature deletion.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | src/ui/keypair_details/KeyPairUIDTab.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp index c3c436be..1fe57916 100644 --- a/src/ui/keypair_details/KeyPairUIDTab.cpp +++ b/src/ui/keypair_details/KeyPairUIDTab.cpp @@ -78,7 +78,7 @@ void KeyPairUIDTab::createUIDList() { uidList = new QTableWidget(this); uidList->setColumnCount(4); - // uidList->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); + uidList->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); uidList->verticalHeader()->hide(); uidList->setShowGrid(false); uidList->setSelectionBehavior(QAbstractItemView::SelectRows); @@ -101,7 +101,7 @@ void KeyPairUIDTab::createUIDList() { void KeyPairUIDTab::createSignList() { sigList = new QTableWidget(this); - sigList->setColumnCount(4); + sigList->setColumnCount(5); sigList->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); sigList->verticalHeader()->hide(); sigList->setShowGrid(false); @@ -116,9 +116,9 @@ void KeyPairUIDTab::createSignList() { sigList->setAlternatingRowColors(true); QStringList labels; - labels << tr("Key ID") << tr("Name") << tr("Email") << tr("Create Date"); + labels << tr("Key ID") << tr("Name") << tr("Email") << tr("Create Date") << tr("Expired Date"); sigList->setHorizontalHeaderLabels(labels); - sigList->horizontalHeader()->setStretchLastSection(true); + sigList->horizontalHeader()->setStretchLastSection(false); } @@ -209,8 +209,9 @@ void KeyPairUIDTab::slotRefreshSigList() { auto *tmp4 = new QTableWidgetItem(sig->create_time.toString()); sigList->setItem(sigRow, 3, tmp4); -// auto *tmp5 = new QTableWidgetItem(sig->expire_time.toTime_t() == 0 ? "Never Expire" : sig->expire_time.toString()); -// sigList->setItem(sigRow, 4, tmp5); + auto *tmp5 = new QTableWidgetItem(sig->expire_time.toTime_t() == 0 ? tr("Never Expire") : sig->expire_time.toString()); + tmp5->setTextAlignment(Qt::AlignCenter); + sigList->setItem(sigRow, 4, tmp5); sigRow++; } @@ -454,7 +455,7 @@ void KeyPairUIDTab::slotDelUIDSingle() { void KeyPairUIDTab::createSignPopupMenu() { signPopupMenu = new QMenu(this); - auto *delSignAct = new QAction(tr("Delete Signature"), this); + auto *delSignAct = new QAction(tr("Delete(Revoke) Signature"), this); connect(delSignAct, SIGNAL(triggered()), this, SLOT(slotDelSign())); signPopupMenu->addAction(delSignAct); |