diff options
author | Saturneric <[email protected]> | 2022-01-12 00:13:18 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-12 00:13:18 +0000 |
commit | dce25f712d22e9eaac12f033814f4bca9c1beb70 (patch) | |
tree | 763237951361361edc3767786ea53c93867f7d98 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | <fix>(ui): Add ReceiveMailDialog's functions definition (diff) | |
download | GpgFrontend-dce25f712d22e9eaac12f033814f4bca9c1beb70.tar.gz GpgFrontend-dce25f712d22e9eaac12f033814f4bca9c1beb70.zip |
<fix>(ui): Fixed some bugs in tooltips.
1. Some tooltips are not aligned with the parent interface.
2. The text of some tooltips should be checked instead of selected.
Diffstat (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index 57fb5bae..d2ad177a 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -61,7 +61,7 @@ void MainWindow::slotEncrypt() { // Symmetric Encrypt auto ret = QMessageBox::information( this, _("Symmetric Encryption"), - _("No Key Selected. Do you want to encrypt with a " + _("No Key Checked. Do you want to encrypt with a " "symmetric cipher using a passphrase?"), QMessageBox::Ok | QMessageBox::Cancel); @@ -82,7 +82,7 @@ void MainWindow::slotEncrypt() { for (const auto& key : *keys) { if (!key.CanEncrActual()) { QMessageBox::information( - nullptr, _("Invalid Operation"), + this, _("Invalid Operation"), QString(_( "The selected key contains a key that does not actually have a " "encrypt usage.")) + @@ -130,8 +130,8 @@ void MainWindow::slotSign() { if (key_ids->empty()) { QMessageBox::critical( - this, _("No Key Selected"), - _("Please select the key in the key toolbox on the right.")); + this, _("No Key Checked"), + _("Please check the key in the key toolbox on the right.")); return; } @@ -273,8 +273,8 @@ void MainWindow::slotEncryptSign() { if (key_ids->empty()) { QMessageBox::critical( - nullptr, _("No Key Selected"), - _("Please select the key in the key toolbox on the right.")); + this, _("No Key Checked"), + _("Please check some key in the key toolbox on the right.")); return; } @@ -285,7 +285,7 @@ void MainWindow::slotEncryptSign() { if (!key_can_encrypt) { QMessageBox::critical( - nullptr, _("Invalid KeyPair"), + this, _("Invalid KeyPair"), QString(_("The selected keypair cannot be used for encryption.")) + "<br/><br/>" + _("For example the Following Key:") + " <br/>" + QString::fromStdString(key.uids()->front().uid())); @@ -462,7 +462,7 @@ void MainWindow::slotCopyMailAddressToClipboard() { auto key = GpgKeyGetter::GetInstance().GetKey(key_ids->front()); if (!key.good()) { - QMessageBox::critical(nullptr, _("Error"), _("Key Not Found.")); + QMessageBox::critical(this, _("Error"), _("Key Not Found.")); return; } QClipboard* cb = QApplication::clipboard(); @@ -477,7 +477,7 @@ void MainWindow::slotShowKeyDetails() { if (key.good()) { new KeyDetailsDialog(key, this); } else { - QMessageBox::critical(nullptr, _("Error"), _("Key Not Found.")); + QMessageBox::critical(this, _("Error"), _("Key Not Found.")); } } |