aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/certificatemanagementdialog.cpp4
-rw-r--r--src/dialogs/settingsdialog.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/dialogs/certificatemanagementdialog.cpp b/src/dialogs/certificatemanagementdialog.cpp
index 4734b01..9b43ba7 100644
--- a/src/dialogs/certificatemanagementdialog.cpp
+++ b/src/dialogs/certificatemanagementdialog.cpp
@@ -62,7 +62,7 @@ void CertificateManagementDialog::on_certificates_selected(QModelIndex const& in
this->ui->cert_common_name->setText(cert.certificate.subjectInfo(QSslCertificate::CommonName).join(", "));
this->ui->cert_expiration_date->setDateTime(cert.certificate.expiryDate());
auto days = QDateTime::currentDateTime().daysTo(cert.certificate.expiryDate());
- this->ui->cert_livetime->setText(QString(tr("%1 day","%1 days",days)).arg(days));
+ this->ui->cert_livetime->setText(tr("%1 day","%1 days", days).arg(days));
this->ui->cert_fingerprint->setPlainText(toFingerprintString(cert.certificate));
this->ui->cert_notes->setPlainText(cert.user_notes);
@@ -130,7 +130,7 @@ void CertificateManagementDialog::on_delete_cert_button_clicked()
auto answer = QMessageBox::question(
this,
tr("Kristall"),
- QString(tr("Do you want to delete the group '%1'")).arg(group_name)
+ tr("Do you want to delete the group '%1'").arg(group_name)
);
if(answer != QMessageBox::Yes)
return;
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index ea30d4f..c97d74c 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -663,7 +663,7 @@ void SettingsDialog::on_preset_new_clicked()
bool override = false;
if(this->predefined_styles.contains(name))
{
- auto response = QMessageBox::question(this, "Kristall", QString(tr("A style with the name '%1' already exists! Replace?")).arg(name));
+ auto response = QMessageBox::question(this, "Kristall", tr("A style with the name '%1' already exists! Replace?").arg(name));
if(response != QMessageBox::Yes)
return;
override = true;
@@ -683,7 +683,7 @@ void SettingsDialog::on_preset_save_clicked()
if(name.isEmpty())
return;
- auto response = QMessageBox::question(this, "Kristall", QString(tr("Do you want to override the style '%1'?")).arg(name));
+ auto response = QMessageBox::question(this, "Kristall", tr("Do you want to override the style '%1'?").arg(name));
if(response != QMessageBox::Yes)
return;
@@ -697,7 +697,7 @@ void SettingsDialog::on_preset_load_clicked()
if(name.isEmpty())
return;
- auto response = QMessageBox::question(this, "Kristall", QString(tr("Do you want to load the style '%1'?\r\nThis will discard all currently set up values!")).arg(name));
+ auto response = QMessageBox::question(this, "Kristall", tr("Do you want to load the style '%1'?\r\nThis will discard all currently set up values!").arg(name));
if(response != QMessageBox::Yes)
return;
@@ -763,7 +763,7 @@ void SettingsDialog::on_preset_import_clicked()
bool override = false;
if(this->predefined_styles.contains(name))
{
- auto response = QMessageBox::question(this, "Kristall", QString(tr("Do you want to override the style '%1'?")).arg(name));
+ auto response = QMessageBox::question(this, "Kristall", tr("Do you want to override the style '%1'?").arg(name));
if(response != QMessageBox::Yes)
return;
override = true;