Commit 3e9c6bd2 authored by Andrius Štikonas's avatar Andrius Štikonas

Port away from KFileDialog.

parent 26c1d20f
......@@ -23,6 +23,7 @@
// Qt includes
#include <QButtonGroup>
#include <QFileDialog>
#include <QGroupBox>
#include <QIcon>
#include <QLayout>
......@@ -41,7 +42,6 @@
#include <KSelectAction>
#include <KStandardAction>
#include <KStandardGameAction>
#include <kfiledialog.h>
// KGame includes
#define USE_UNSTABLE_LIBKDEGAMESPRIVATE_API
......@@ -495,7 +495,7 @@ void KWin4App::menuOpenGame()
QString filter(QStringLiteral("*"));
QString file(QStringLiteral("/tmp/kwin.save"));
if (global_debug < 1)
file=KFileDialog::getOpenFileName(QUrl(dir),filter,this);
file = QFileDialog::getOpenFileName(this, QString(), dir, filter);
mDoc->load(file,true);
checkMenus();
}
......@@ -507,7 +507,7 @@ void KWin4App::menuSaveGame()
QString filter(QStringLiteral("*"));
QString file(QStringLiteral("/tmp/kwin.save"));
if (global_debug < 1)
file=KFileDialog::getSaveFileName(QUrl(dir),filter,this);
file = QFileDialog::getSaveFileName(this, QString(), dir, filter);
mDoc->save(file);
}
......
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