diff options
author | Robert Loehning <[email protected]> | 2014-02-17 15:58:21 +0100 |
---|---|---|
committer | Robert Loehning <[email protected]> | 2014-02-17 18:43:27 +0100 |
commit | 5a909111e137eb7e45da44c29f4543bef1242d44 (patch) | |
tree | 64b4e4fb7fba7756fce1e87bf893acd3c75e287f /src/libs/ssh/sshkeycreationdialog.cpp | |
parent | 87de153345b6ed5f4cf6bb151829c49b4b1f17b1 (diff) |
Use native label for "Browse" button
Change-Id: I129cc8fde704ff9bddd53ce277101528ebdd871c
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/libs/ssh/sshkeycreationdialog.cpp')
-rw-r--r-- | src/libs/ssh/sshkeycreationdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp index 1cd3904c782..3630aa3edbc 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); |