Commit 90bcdc1c authored by Laurent Montel's avatar Laurent Montel 😁

KUrl--

parent 5a17e32c
......@@ -66,7 +66,7 @@
#include <kimagefilepreview.h>
#include <KToolInvocation>
#include <QMenu>
#include <KUrl>
#include <QUrl>
#include <QDockWidget>
#include <QProgressBar>
......@@ -703,7 +703,7 @@ void MainWindow::uploadMediaObject()
void MainWindow::slotOpenCurrentBlogInBrowser()
{
if (mCurrentBlogId > -1) {
KUrl url(DBMan::self()->blog(mCurrentBlogId)->blogUrl());
QUrl url(DBMan::self()->blog(mCurrentBlogId)->blogUrl());
if (url.isValid()) {
KToolInvocation::invokeBrowser(url.url());
} else {
......
......@@ -2385,7 +2385,7 @@ void KMMainWidget::slotSaveMsg()
//-----------------------------------------------------------------------------
void KMMainWidget::slotOpenMsg()
{
KMOpenMsgCommand *openCommand = new KMOpenMsgCommand(this, KUrl(), overrideEncoding(), this);
KMOpenMsgCommand *openCommand = new KMOpenMsgCommand(this, QUrl(), overrideEncoding(), this);
openCommand->start();
}
......
......@@ -147,9 +147,9 @@ bool KOrganizerPart::saveURL()
return mActionManager->saveURL();
}
bool KOrganizerPart::saveAsURL(const QUrl &kurl)
bool KOrganizerPart::saveAsURL(const QUrl &url)
{
return mActionManager->saveAsURL(kurl);
return mActionManager->saveAsURL(url);
}
QUrl KOrganizerPart::getCurrentURL() const
......@@ -175,7 +175,7 @@ void KOrganizerPart::setTitle()
if ( !hasDocument() ) {
title = i18n("Calendar");
} else {
KUrl url = mActionManager->url();
QUrl url = mActionManager->url();
if ( !url.isEmpty() ) {
if ( url.isLocalFile() ) title = url.fileName();
......
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