diff --git a/editor/kmcomposewin.cpp b/editor/kmcomposewin.cpp index 861a9042b..72e2e6017 100644 --- a/editor/kmcomposewin.cpp +++ b/editor/kmcomposewin.cpp @@ -3532,7 +3532,7 @@ void KMComposeWin::charSelected(const QChar &c) void KMComposeWin::slotSaveAsFile() { - QPointer dlg = new KFileDialog(KUrl(), QString(), this); + QPointer dlg = new KFileDialog(QUrl(), QString(), this); dlg->setOperationMode(KFileDialog::Saving); dlg->setConfirmOverwrite(true); if (mComposerBase->editor()->textMode() == KMeditor::Rich) { diff --git a/kmkernel.cpp b/kmkernel.cpp index db2f47b23..f815014f2 100644 --- a/kmkernel.cpp +++ b/kmkernel.cpp @@ -563,7 +563,7 @@ int KMKernel::openComposer(const QString &to, const QString &cc, msg->subject()->fromUnicodeString(subject, "utf-8"); } - KUrl messageUrl = KUrl(messageFile); + QUrl messageUrl = QUrl::fromLocalFile(messageFile); if (!messageUrl.isEmpty() && messageUrl.isLocalFile()) { QFile f(messageUrl.toLocalFile()); QByteArray str; @@ -883,7 +883,7 @@ QDBusObjectPath KMKernel::newMessage(const QString &to, const QString & /*messageFile*/, const QString &_attachURL) { - KUrl attachURL(_attachURL); + QUrl attachURL = QUrl::fromLocalFile(_attachURL); KMime::Message::Ptr msg(new KMime::Message); QSharedPointer folder; uint id = 0;