summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-03-05 08:06:46 +0100
committerMontel Laurent <[email protected]>2015-03-05 08:08:51 +0100
commit0db893e5f7cb55f01ffdfae68e7d83ef0e42a5e8 (patch)
treea0268da46f56e315404995f1c398be3939ce66d0
parentd4474900f2829a2559debcd24126af9d74a37503 (diff)
port to QInputDialog
-rw-r--r--app/fileoperations.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/fileoperations.cpp b/app/fileoperations.cpp
index 50e57c4..ca21ac6 100644
--- a/app/fileoperations.cpp
+++ b/app/fileoperations.cpp
@@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
#include <QFileDialog>
// KDE
-#include <KInputDialog>
+#include <QInputDialog>
#include <KIO/CopyJob>
#include <KIO/DeleteJob>
#include <KIO/Job>
@@ -201,12 +201,10 @@ void showMenuForDroppedUrls(QWidget* parent, const QList<QUrl>& urlList, const Q
void rename(const QUrl &oldUrl, QWidget* parent)
{
- QString name = KInputDialog::getText(
+ QString name = QInputDialog::getText(parent,
i18nc("@title:window", "Rename") /* caption */,
xi18n("Rename <filename>%1</filename> to:", oldUrl.fileName()) /* label */,
- oldUrl.fileName() /* value */,
- 0 /* ok */,
- parent
+ QLineEdit::Normal, oldUrl.fileName() /* value */
);
if (name.isEmpty() || name == oldUrl.fileName()) {
return;