From 6a4d6efb3b69f3a5ffc314b4919fcffd52e30113 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Wed, 4 Feb 2015 10:11:46 +0100 Subject: Port to new connect api Change-Id: I84834f37dd15108ed8c5fbf5353bcabc4e564f70 Reviewed-by: hjk Reviewed-by: Christian Kandeler --- src/libs/ssh/sshkeycreationdialog.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/libs/ssh/sshkeycreationdialog.cpp') diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp index 39d36aa993..d2f850125f 100644 --- a/src/libs/ssh/sshkeycreationdialog.cpp +++ b/src/libs/ssh/sshkeycreationdialog.cpp @@ -56,10 +56,14 @@ SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent) + QLatin1String("/.ssh/qtc_id"); setPrivateKeyFile(defaultPath); - connect(m_ui->rsa, SIGNAL(toggled(bool)), this, SLOT(keyTypeChanged())); - connect(m_ui->dsa, SIGNAL(toggled(bool)), this, SLOT(keyTypeChanged())); - connect(m_ui->privateKeyFileButton, SIGNAL(clicked()), SLOT(handleBrowseButtonClicked())); - connect(m_ui->generateButton, SIGNAL(clicked()), this, SLOT(generateKeys())); + connect(m_ui->rsa, &QRadioButton::toggled, + this, &SshKeyCreationDialog::keyTypeChanged); + connect(m_ui->dsa, &QRadioButton::toggled, + this, &SshKeyCreationDialog::keyTypeChanged); + connect(m_ui->privateKeyFileButton, &QPushButton::clicked, + this, &SshKeyCreationDialog::handleBrowseButtonClicked); + connect(m_ui->generateButton, &QPushButton::clicked, + this, &SshKeyCreationDialog::generateKeys); } SshKeyCreationDialog::~SshKeyCreationDialog() -- cgit v1.2.1