aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairSubkeyTab.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-06-02 19:13:57 +0000
committerSaturneric <[email protected]>2021-06-02 19:13:57 +0000
commit2ce221a7f0a26c24b6cbe4c95703152288da906f (patch)
tree05ffe43c65bb0d33a6077287d3037857f311de6a /src/ui/keypair_details/KeyPairSubkeyTab.cpp
parentWrite a text logo for never expiring. (diff)
downloadGpgFrontend-2ce221a7f0a26c24b6cbe4c95703152288da906f.tar.gz
GpgFrontend-2ce221a7f0a26c24b6cbe4c95703152288da906f.zip
Add and change the expiration date of the key pair.
Add a window to change the key expiration date. Add a refresh mechanism for the key details tab. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/ui/keypair_details/KeyPairSubkeyTab.cpp')
-rw-r--r--src/ui/keypair_details/KeyPairSubkeyTab.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/ui/keypair_details/KeyPairSubkeyTab.cpp b/src/ui/keypair_details/KeyPairSubkeyTab.cpp
index f3edfe09..75bd50f5 100644
--- a/src/ui/keypair_details/KeyPairSubkeyTab.cpp
+++ b/src/ui/keypair_details/KeyPairSubkeyTab.cpp
@@ -26,7 +26,7 @@
KeyPairSubkeyTab::KeyPairSubkeyTab(GpgME::GpgContext *ctx, const GpgKey &key, QWidget *parent) : mCtx(ctx), mKey(key), QWidget(parent) {
- creatSubkeyList();
+ createSubkeyList();
listBox = new QGroupBox("Subkey List");
detailBox = new QGroupBox("Detail of Selected Subkey");
@@ -88,7 +88,7 @@ KeyPairSubkeyTab::KeyPairSubkeyTab(GpgME::GpgContext *ctx, const GpgKey &key, QW
}
-void KeyPairSubkeyTab::creatSubkeyList() {
+void KeyPairSubkeyTab::createSubkeyList() {
subkeyList = new QTableWidget(this);
subkeyList->setColumnCount(5);
@@ -194,3 +194,20 @@ void KeyPairSubkeyTab::slotRefreshSubkeyDetail() {
usageVarLabel->setText(usage);
}
+
+void KeyPairSubkeyTab::createSubkeyOperaMenu() {
+ subkeyOperaMenu = new QMenu();
+ auto *revokeSubkeyAct = new QAction(tr("Revoke Subkey"));
+ auto *editSubkeyAct = new QAction(tr("Edit Subkey"));
+
+ subkeyOperaMenu->addAction(revokeSubkeyAct);
+ subkeyOperaMenu->addAction(editSubkeyAct);
+}
+
+void KeyPairSubkeyTab::slotEditSubkey() {
+
+}
+
+void KeyPairSubkeyTab::slotRevokeSubkey() {
+
+}