/***************************************************************************
- * Copyright (C) 2005-2015 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
"on the Quassel Core running at <b>%2</b>.")
.arg(account.user(), account.hostName()));
- connect(ui.oldPasswordEdit, SIGNAL(textChanged(QString)), SLOT(inputChanged()));
- connect(ui.newPasswordEdit, SIGNAL(textChanged(QString)), SLOT(inputChanged()));
- connect(ui.confirmPasswordEdit, SIGNAL(textChanged(QString)), SLOT(inputChanged()));
- connect(ui.buttonBox, SIGNAL(accepted()), SLOT(changePassword()));
+ connect(ui.oldPasswordEdit, &QLineEdit::textChanged, this, &PasswordChangeDlg::inputChanged);
+ connect(ui.newPasswordEdit, &QLineEdit::textChanged, this, &PasswordChangeDlg::inputChanged);
+ connect(ui.confirmPasswordEdit, &QLineEdit::textChanged, this, &PasswordChangeDlg::inputChanged);
+ connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &PasswordChangeDlg::changePassword);
- connect(Client::instance(), SIGNAL(passwordChanged(bool)), SLOT(passwordChanged(bool)));
+ connect(Client::instance(), &Client::passwordChanged, this, &PasswordChangeDlg::passwordChanged);
ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
}
{
if (!success) {
QMessageBox box(QMessageBox::Warning, tr("Password Not Changed"),
- tr("<b>Password change failed<b>"),
+ tr("<b>Password change failed</b>"),
QMessageBox::Ok, this);
box.setInformativeText(tr("The core reported an error when trying to change your password. Make sure you entered your old password correctly!"));
box.exec();