From 5a909111e137eb7e45da44c29f4543bef1242d44 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Mon, 17 Feb 2014 15:58:21 +0100 Subject: Use native label for "Browse" button Change-Id: I129cc8fde704ff9bddd53ce277101528ebdd871c Reviewed-by: Christian Kandeler --- src/libs/ssh/sshkeycreationdialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libs/ssh/sshkeycreationdialog.cpp') diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp index 1cd3904c78..3630aa3edb 100644 --- a/src/libs/ssh/sshkeycreationdialog.cpp +++ b/src/libs/ssh/sshkeycreationdialog.cpp @@ -45,6 +45,12 @@ SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent) : QDialog(parent), m_keyGenerator(0), m_ui(new Ui::SshKeyCreationDialog) { m_ui->setupUi(this); + // Not using Utils::PathChooser::browseButtonLabel to avoid dependency +#ifdef Q_OS_MAC + m_ui->privateKeyFileButton->setText(tr("Choose...")); +#else + m_ui->privateKeyFileButton->setText(tr("Browse...")); +#endif const QString defaultPath = QDesktopServices::storageLocation(QDesktopServices::HomeLocation) + QLatin1String("/.ssh/qtc_id"); setPrivateKeyFile(defaultPath); -- cgit v1.2.1