]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/renamedialog.cpp
KLineEdit to QLineEdit
[dolphin.git] / src / views / renamedialog.cpp
index 458b9ef79447f9658648ae7338a317f245edc824..c5001af08c782fdbb4d9435bc4f245255f32a0a9 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "renamedialog.h"
 
-#include <KLineEdit>
 #include <KLocalizedString>
 #include <KJobWidgets>
 #include <KIO/CopyJob>
@@ -35,6 +34,7 @@
 #include <QMimeDatabase>
 #include <QDialogButtonBox>
 #include <QPushButton>
+#include <QLineEdit>
 #include <KGuiItem>
 
 RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) :
@@ -88,9 +88,9 @@ RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) :
                                page);
     }
 
-    m_lineEdit = new KLineEdit(page);
+    m_lineEdit = new QLineEdit(page);
     mainLayout->addWidget(m_lineEdit);
-    connect(m_lineEdit, &KLineEdit::textChanged, this, &RenameDialog::slotTextChanged);
+    connect(m_lineEdit, &QLineEdit::textChanged, this, &RenameDialog::slotTextChanged);
 
     int selectionLength = m_newName.length();
     if (m_renameOneItem) {
@@ -159,7 +159,7 @@ void RenameDialog::renameItem(const KFileItem &item, const QString& newName)
 
     KIO::Job * job = KIO::moveAs(oldUrl, newUrl);
     KJobWidgets::setWindow(job, widget);
-    KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Rename, QList<QUrl>() << oldUrl, newUrl, job);
+    KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Rename, {oldUrl}, newUrl, job);
     job->ui()->setAutoErrorHandlingEnabled(true);
 }