diff options
author | Christian Kandeler <[email protected]> | 2014-08-28 17:33:47 +0200 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2014-08-29 14:10:41 +0200 |
commit | 1d5091e48f6df341dbd4436843c25afe25cbf4ce (patch) | |
tree | 9151d71b36bcffbba219ef1a0fc4e4f234adbc89 /src/libs/ssh/sshkeycreationdialog.cpp | |
parent | 7ba0f8a4c42c5db144b599861f38d2e771e0dafe (diff) |
Do not use deprecated Qt functionality.
Replace all* remaining deprecated Qt 4 functions with
their Qt 5 counterparts. This means we no longer need to
define the QT_DISABLE_DEPRECATED_BEFORE macro.
This patch is relatively small because most source-compatible
changes of this kind have been done before.
* The one exception is the QmlDesigner, which uses QWeakPointer
in a deprecated way all over the place.
Change-Id: Id4b839c6685f3b5bdf2b89137f95231758ec53c7
Reviewed-by: Eike Ziller <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/ssh/sshkeycreationdialog.cpp')
-rw-r--r-- | src/libs/ssh/sshkeycreationdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/ssh/sshkeycreationdialog.cpp b/src/libs/ssh/sshkeycreationdialog.cpp index 0c5d3625250..ce3dd6b23d3 100644 --- a/src/libs/ssh/sshkeycreationdialog.cpp +++ b/src/libs/ssh/sshkeycreationdialog.cpp @@ -36,8 +36,8 @@ #include <QFileDialog> #include <QFileInfo> #include <QApplication> -#include <QDesktopServices> #include <QMessageBox> +#include <QStandardPaths> namespace QSsh { @@ -51,7 +51,7 @@ SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent) #else m_ui->privateKeyFileButton->setText(tr("Browse...")); #endif - const QString defaultPath = QDesktopServices::storageLocation(QDesktopServices::HomeLocation) + const QString defaultPath = QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + QLatin1String("/.ssh/qtc_id"); setPrivateKeyFile(defaultPath); |