Commit 5cc59399 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Port KFileDialog::getExistingDirectoryUrl to QFileDialog::

parent 69989714
......@@ -36,13 +36,14 @@
#include <QFileSystemModel>
#include <QtCore/QUrl>
#include <QFontDialog>
#include <QFileDialog>
#include <QDialog>
#include <QDebug>
// KDE
#include <KCodecAction>
#include <KDialog>
#include <KIconDialog>
#include <KFileDialog>
#include <KUrlCompletion>
#include <KWindowSystem>
#include <KTextEdit>
......@@ -426,9 +427,9 @@ void EditProfileDialog::commandChanged(const QString& command)
}
void EditProfileDialog::selectInitialDir()
{
const QUrl url = KFileDialog::getExistingDirectoryUrl(QUrl::fromUserInput(_ui->initialDirEdit->text()),
this,
i18n("Select Initial Directory"));
const QUrl url = QFileDialog::getExistingDirectoryUrl(this,
i18n("Select Initial Directory"),
QUrl::fromUserInput(_ui->initialDirEdit->text()));
if (!url.isEmpty())
_ui->initialDirEdit->setText(url.path());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment