Commit 7fd69ea3 authored by Christoph Feck's avatar Christoph Feck

KUrl -> QUrl

This is a global search/replace, the needed manual changes
will be committed separately
parent 1d69240e
...@@ -133,7 +133,7 @@ bool kpDocument::savedAtLeastOnceBefore () const ...@@ -133,7 +133,7 @@ bool kpDocument::savedAtLeastOnceBefore () const
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// public // public
KUrl kpDocument::url () const QUrl kpDocument::url () const
{ {
return m_url; return m_url;
} }
...@@ -141,7 +141,7 @@ KUrl kpDocument::url () const ...@@ -141,7 +141,7 @@ KUrl kpDocument::url () const
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// public // public
void kpDocument::setURL (const KUrl &url, bool isFromURL) void kpDocument::setURL (const QUrl &url, bool isFromURL)
{ {
m_url = url; m_url = url;
m_isFromURL = isFromURL; m_isFromURL = isFromURL;
......
...@@ -82,14 +82,14 @@ public: ...@@ -82,14 +82,14 @@ public:
// //
static QImage getPixmapFromFile (const KUrl &url, bool suppressDoesntExistDialog, static QImage getPixmapFromFile (const QUrl &url, bool suppressDoesntExistDialog,
QWidget *parent, QWidget *parent,
kpDocumentSaveOptions *saveOptions = 0, kpDocumentSaveOptions *saveOptions = 0,
kpDocumentMetaInfo *metaInfo = 0); kpDocumentMetaInfo *metaInfo = 0);
// REFACTOR: fix: open*() should only be called once. // REFACTOR: fix: open*() should only be called once.
// Create a new kpDocument() if you want to open again. // Create a new kpDocument() if you want to open again.
void openNew (const KUrl &url); void openNew (const QUrl &url);
bool open (const KUrl &url, bool newDocSameNameIfNotExist = false); bool open (const QUrl &url, bool newDocSameNameIfNotExist = false);
static void getDataFromImage(const QImage &image, static void getDataFromImage(const QImage &image,
kpDocumentSaveOptions &saveOptions, kpDocumentSaveOptions &saveOptions,
...@@ -110,14 +110,14 @@ public: ...@@ -110,14 +110,14 @@ public:
QWidget *parent, QWidget *parent,
bool *userCancelled = 0); bool *userCancelled = 0);
static bool savePixmapToFile (const QImage &pixmap, static bool savePixmapToFile (const QImage &pixmap,
const KUrl &url, const QUrl &url,
const kpDocumentSaveOptions &saveOptions, const kpDocumentSaveOptions &saveOptions,
const kpDocumentMetaInfo &metaInfo, const kpDocumentMetaInfo &metaInfo,
bool overwritePrompt, bool overwritePrompt,
bool lossyPrompt, bool lossyPrompt,
QWidget *parent); QWidget *parent);
bool save (bool overwritePrompt = false, bool lossyPrompt = false); bool save (bool overwritePrompt = false, bool lossyPrompt = false);
bool saveAs (const KUrl &url, bool saveAs (const QUrl &url,
const kpDocumentSaveOptions &saveOptions, const kpDocumentSaveOptions &saveOptions,
bool overwritePrompt = true, bool overwritePrompt = true,
bool lossyPrompt = true); bool lossyPrompt = true);
...@@ -126,8 +126,8 @@ public: ...@@ -126,8 +126,8 @@ public:
// Returns whether save() or saveAs() have ever been called and returned true // Returns whether save() or saveAs() have ever been called and returned true
bool savedAtLeastOnceBefore () const; bool savedAtLeastOnceBefore () const;
KUrl url () const; QUrl url () const;
void setURL (const KUrl &url, bool isFromURL); void setURL (const QUrl &url, bool isFromURL);
// Returns whether the document's image was successfully opened from // Returns whether the document's image was successfully opened from
// or saved to the URL returned by url(). This is not true for a // or saved to the URL returned by url(). This is not true for a
...@@ -339,7 +339,7 @@ private: ...@@ -339,7 +339,7 @@ private:
int m_constructorWidth, m_constructorHeight; int m_constructorWidth, m_constructorHeight;
kpImage *m_image; kpImage *m_image;
KUrl m_url; QUrl m_url;
bool m_isFromURL; bool m_isFromURL;
bool m_savedAtLeastOnceBefore; bool m_savedAtLeastOnceBefore;
......
...@@ -79,7 +79,7 @@ void kpDocument::getDataFromImage(const QImage &image, ...@@ -79,7 +79,7 @@ void kpDocument::getDataFromImage(const QImage &image,
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// public static // public static
QImage kpDocument::getPixmapFromFile(const KUrl &url, bool suppressDoesntExistDialog, QImage kpDocument::getPixmapFromFile(const QUrl &url, bool suppressDoesntExistDialog,
QWidget *parent, QWidget *parent,
kpDocumentSaveOptions *saveOptions, kpDocumentSaveOptions *saveOptions,
kpDocumentMetaInfo *metaInfo) kpDocumentMetaInfo *metaInfo)
...@@ -193,7 +193,7 @@ QImage kpDocument::getPixmapFromFile(const KUrl &url, bool suppressDoesntExistDi ...@@ -193,7 +193,7 @@ QImage kpDocument::getPixmapFromFile(const KUrl &url, bool suppressDoesntExistDi
//--------------------------------------------------------------------- //---------------------------------------------------------------------
void kpDocument::openNew (const KUrl &url) void kpDocument::openNew (const QUrl &url)
{ {
#if DEBUG_KP_DOCUMENT #if DEBUG_KP_DOCUMENT
kDebug () << "kpDocument::openNew (" << url << ")"; kDebug () << "kpDocument::openNew (" << url << ")";
...@@ -217,7 +217,7 @@ void kpDocument::openNew (const KUrl &url) ...@@ -217,7 +217,7 @@ void kpDocument::openNew (const KUrl &url)
//--------------------------------------------------------------------- //---------------------------------------------------------------------
bool kpDocument::open (const KUrl &url, bool newDocSameNameIfNotExist) bool kpDocument::open (const QUrl &url, bool newDocSameNameIfNotExist)
{ {
#if DEBUG_KP_DOCUMENT #if DEBUG_KP_DOCUMENT
kDebug () << "kpDocument::open (" << url << ")"; kDebug () << "kpDocument::open (" << url << ")";
...@@ -255,7 +255,7 @@ bool kpDocument::open (const KUrl &url, bool newDocSameNameIfNotExist) ...@@ -255,7 +255,7 @@ bool kpDocument::open (const KUrl &url, bool newDocSameNameIfNotExist)
} }
else else
{ {
openNew (KUrl ()); openNew (QUrl ());
} }
return true; return true;
......
...@@ -295,7 +295,7 @@ static void CouldNotCreateTemporaryFileDialog (QWidget *parent) ...@@ -295,7 +295,7 @@ static void CouldNotCreateTemporaryFileDialog (QWidget *parent)
//--------------------------------------------------------------------- //---------------------------------------------------------------------
static void CouldNotSaveDialog (const KUrl &url, QWidget *parent) static void CouldNotSaveDialog (const QUrl &url, QWidget *parent)
{ {
// TODO: use file.errorString() // TODO: use file.errorString()
KMessageBox::error (parent, KMessageBox::error (parent,
...@@ -307,7 +307,7 @@ static void CouldNotSaveDialog (const KUrl &url, QWidget *parent) ...@@ -307,7 +307,7 @@ static void CouldNotSaveDialog (const KUrl &url, QWidget *parent)
// public static // public static
bool kpDocument::savePixmapToFile (const QImage &pixmap, bool kpDocument::savePixmapToFile (const QImage &pixmap,
const KUrl &url, const QUrl &url,
const kpDocumentSaveOptions &saveOptions, const kpDocumentSaveOptions &saveOptions,
const kpDocumentMetaInfo &metaInfo, const kpDocumentMetaInfo &metaInfo,
bool overwritePrompt, bool overwritePrompt,
...@@ -479,7 +479,7 @@ bool kpDocument::savePixmapToFile (const QImage &pixmap, ...@@ -479,7 +479,7 @@ bool kpDocument::savePixmapToFile (const QImage &pixmap,
//--------------------------------------------------------------------- //---------------------------------------------------------------------
bool kpDocument::saveAs (const KUrl &url, bool kpDocument::saveAs (const QUrl &url,
const kpDocumentSaveOptions &saveOptions, const kpDocumentSaveOptions &saveOptions,
bool overwritePrompt, bool overwritePrompt,
bool lossyPrompt) bool lossyPrompt)
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kstringhandler.h> #include <kstringhandler.h>
#include <KTemporaryFile> #include <KTemporaryFile>
#include <KUrl> #include <QUrl>
#include <kdebug.h> #include <kdebug.h>
#include <kpUrlFormatter.h> #include <kpUrlFormatter.h>
...@@ -115,7 +115,7 @@ kpColorCollection::~kpColorCollection() ...@@ -115,7 +115,7 @@ kpColorCollection::~kpColorCollection()
delete d; delete d;
} }
static void CouldNotOpenDialog (const KUrl &url, QWidget *parent) static void CouldNotOpenDialog (const QUrl &url, QWidget *parent)
{ {
KMessageBox::sorry (parent, KMessageBox::sorry (parent,
i18n ("Could not open color palette \"%1\".", i18n ("Could not open color palette \"%1\".",
...@@ -124,7 +124,7 @@ static void CouldNotOpenDialog (const KUrl &url, QWidget *parent) ...@@ -124,7 +124,7 @@ static void CouldNotOpenDialog (const KUrl &url, QWidget *parent)
// TODO: Set d->editable? // TODO: Set d->editable?
bool bool
kpColorCollection::open(const KUrl &url, QWidget *parent) kpColorCollection::open(const QUrl &url, QWidget *parent)
{ {
QString tempPaletteFilePath; QString tempPaletteFilePath;
if (url.isEmpty () || !KIO::NetAccess::download (url, tempPaletteFilePath, parent)) if (url.isEmpty () || !KIO::NetAccess::download (url, tempPaletteFilePath, parent))
...@@ -238,7 +238,7 @@ kpColorCollection::openKDE(const QString &name, QWidget *parent) ...@@ -238,7 +238,7 @@ kpColorCollection::openKDE(const QString &name, QWidget *parent)
} }
// (this will pop up an error dialog on failure) // (this will pop up an error dialog on failure)
if (!open (KUrl (filename), parent)) if (!open (QUrl (filename), parent))
{ {
#if DEBUG_KP_COLOR_COLLECTION #if DEBUG_KP_COLOR_COLLECTION
kDebug () << "could not open"; kDebug () << "could not open";
...@@ -253,7 +253,7 @@ kpColorCollection::openKDE(const QString &name, QWidget *parent) ...@@ -253,7 +253,7 @@ kpColorCollection::openKDE(const QString &name, QWidget *parent)
return true; return true;
} }
static void CouldNotSaveDialog (const KUrl &url, QWidget *parent) static void CouldNotSaveDialog (const QUrl &url, QWidget *parent)
{ {
// TODO: use file.errorString() // TODO: use file.errorString()
KMessageBox::error (parent, KMessageBox::error (parent,
...@@ -287,7 +287,7 @@ static void SaveToFile (kpColorCollectionPrivate *d, QIODevice *device) ...@@ -287,7 +287,7 @@ static void SaveToFile (kpColorCollectionPrivate *d, QIODevice *device)
} }
bool bool
kpColorCollection::saveAs(const KUrl &url, bool showOverwritePrompt, kpColorCollection::saveAs(const QUrl &url, bool showOverwritePrompt,
QWidget *parent) const QWidget *parent) const
{ {
if (showOverwritePrompt && if (showOverwritePrompt &&
...@@ -402,7 +402,7 @@ kpColorCollection::saveKDE(QWidget *parent) const ...@@ -402,7 +402,7 @@ kpColorCollection::saveKDE(QWidget *parent) const
{ {
const QString name = d->name; const QString name = d->name;
QString filename = KStandardDirs::locateLocal("config", "colors/" + name); QString filename = KStandardDirs::locateLocal("config", "colors/" + name);
const bool ret = saveAs (KUrl (filename), false/*no overwite prompt*/, parent); const bool ret = saveAs (QUrl (filename), false/*no overwite prompt*/, parent);
// (d->name is wiped by saveAs()). // (d->name is wiped by saveAs()).
d->name = name; d->name = name;
return ret; return ret;
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <QStringList> #include <QStringList>
class KUrl; class QUrl;
/** /**
* Class for handling color collections ("palettes"). * Class for handling color collections ("palettes").
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
// On success, it sets the name() to an empty string and returns true. // On success, it sets the name() to an empty string and returns true.
// //
// Added for KolourPaint. // Added for KolourPaint.
bool open(const KUrl &url, QWidget *parent); bool open(const QUrl &url, QWidget *parent);
// Same as open() but is given the name of a KDE palette, not a filename. // Same as open() but is given the name of a KDE palette, not a filename.
// //
...@@ -112,7 +112,7 @@ public: ...@@ -112,7 +112,7 @@ public:
// name() is set to an empty string. // name() is set to an empty string.
// //
// Added for KolourPaint. // Added for KolourPaint.
bool saveAs(const KUrl &url, bool showOverwritePrompt, QWidget *parent) const; bool saveAs(const QUrl &url, bool showOverwritePrompt, QWidget *parent) const;
/** /**
* Save the collection to the KDE-local store * Save the collection to the KDE-local store
......
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
#include <kpUrlFormatter.h> #include <kpUrlFormatter.h>
#include <KLocale> #include <KLocale>
#include <KUrl> #include <QUrl>
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// public static // public static
QString kpUrlFormatter::PrettyUrl (const KUrl &url) QString kpUrlFormatter::PrettyUrl (const QUrl &url)
{ {
if (url.isEmpty ()) if (url.isEmpty ())
return i18n ("Untitled"); return i18n ("Untitled");
...@@ -45,7 +45,7 @@ QString kpUrlFormatter::PrettyUrl (const KUrl &url) ...@@ -45,7 +45,7 @@ QString kpUrlFormatter::PrettyUrl (const KUrl &url)
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// public static // public static
QString kpUrlFormatter::PrettyFilename (const KUrl &url) QString kpUrlFormatter::PrettyFilename (const QUrl &url)
{ {
if (url.isEmpty ()) if (url.isEmpty ())
return i18n ("Untitled"); return i18n ("Untitled");
......
...@@ -40,17 +40,17 @@ ...@@ -40,17 +40,17 @@
class QString; class QString;
class KUrl; class QUrl;
class KOLOURPAINT_LGPL_EXPORT kpUrlFormatter class KOLOURPAINT_LGPL_EXPORT kpUrlFormatter
{ {
public: public:
// (will convert: empty Url --> "Untitled") // (will convert: empty Url --> "Untitled")
static QString PrettyUrl (const KUrl &url); static QString PrettyUrl (const QUrl &url);
// (will convert: empty Url --> "Untitled") // (will convert: empty Url --> "Untitled")
static QString PrettyFilename (const KUrl &url); static QString PrettyFilename (const QUrl &url);
}; };
......
...@@ -70,14 +70,14 @@ kpMainWindow::kpMainWindow () ...@@ -70,14 +70,14 @@ kpMainWindow::kpMainWindow ()
: KXmlGuiWindow (0/*parent*/) : KXmlGuiWindow (0/*parent*/)
{ {
init (); init ();
open (KUrl (), true/*create an empty doc*/); open (QUrl (), true/*create an empty doc*/);
d->isFullyConstructed = true; d->isFullyConstructed = true;
} }
//--------------------------------------------------------------------- //---------------------------------------------------------------------
kpMainWindow::kpMainWindow (const KUrl &url) kpMainWindow::kpMainWindow (const QUrl &url)
: KXmlGuiWindow (0/*parent*/) : KXmlGuiWindow (0/*parent*/)
{ {
init (); init ();
...@@ -304,7 +304,7 @@ void kpMainWindow::readProperties (const KConfigGroup &configGroup) ...@@ -304,7 +304,7 @@ void kpMainWindow::readProperties (const KConfigGroup &configGroup)
// Have a document. // Have a document.
else else
{ {
const KUrl url = configGroup.readEntry (kpSessionSettingDocumentUrl, const QUrl url = configGroup.readEntry (kpSessionSettingDocumentUrl,
QString ()); QString ());
#if DEBUG_KP_MAIN_WINDOW #if DEBUG_KP_MAIN_WINDOW
kDebug () << "\turl=" << url; kDebug () << "\turl=" << url;
...@@ -368,7 +368,7 @@ void kpMainWindow::saveProperties (KConfigGroup &configGroup) ...@@ -368,7 +368,7 @@ void kpMainWindow::saveProperties (KConfigGroup &configGroup)
// i) No URL // i) No URL
// ii) URL (from "kolourpaint doesnotexist.png") // ii) URL (from "kolourpaint doesnotexist.png")
const KUrl url = d->document->url (); const QUrl url = d->document->url ();
#if DEBUG_KP_MAIN_WINDOW #if DEBUG_KP_MAIN_WINDOW
kDebug () << "\turl=" << url; kDebug () << "\turl=" << url;
#endif #endif
...@@ -416,7 +416,7 @@ void kpMainWindow::saveProperties (KConfigGroup &configGroup) ...@@ -416,7 +416,7 @@ void kpMainWindow::saveProperties (KConfigGroup &configGroup)
// --- The below code does not compile but shows you want to do --- // --- The below code does not compile but shows you want to do ---
// Create unique name for the document in this main window. // Create unique name for the document in this main window.
const KUrl tempURL = homeDir + const QUrl tempURL = homeDir +
"kolourpaint session " + sessionID + "kolourpaint session " + sessionID +
mainWindowPtrToString + ".png"; mainWindowPtrToString + ".png";
// TODO: Use lossless PNG saving options. // TODO: Use lossless PNG saving options.
...@@ -830,7 +830,7 @@ void kpMainWindow::dropEvent (QDropEvent *e) ...@@ -830,7 +830,7 @@ void kpMainWindow::dropEvent (QDropEvent *e)
// However, you would need to prefix all possible error/warning // However, you would need to prefix all possible error/warning
// dialogs that might be called, with Qt::arrowCursor e.g. in // dialogs that might be called, with Qt::arrowCursor e.g. in
// kpDocument and probably a lot more places. // kpDocument and probably a lot more places.
foreach (const KUrl &u, urls) foreach (const QUrl &u, urls)
open (u); open (u);
} }
else if (e->mimeData ()->hasText ()) else if (e->mimeData ()->hasText ())
......
...@@ -96,7 +96,7 @@ public: ...@@ -96,7 +96,7 @@ public:
// Opens a new window with the document specified by <url> // Opens a new window with the document specified by <url>
// or creates a blank document if <url> could not be opened. // or creates a blank document if <url> could not be opened.
kpMainWindow (const KUrl &url); kpMainWindow (const QUrl &url);
// Opens a new window with the document <newDoc> // Opens a new window with the document <newDoc>
// (<newDoc> can be 0 although this would result in a new // (<newDoc> can be 0 although this would result in a new
...@@ -305,7 +305,7 @@ private: ...@@ -305,7 +305,7 @@ private:
void setupFileMenuActions (); void setupFileMenuActions ();
void enableFileMenuDocumentActions (bool enable = true); void enableFileMenuDocumentActions (bool enable = true);
void addRecentURL (const KUrl &url); void addRecentURL (const QUrl &url);
private slots: private slots:
void slotNew (); void slotNew ();
...@@ -319,7 +319,7 @@ private: ...@@ -319,7 +319,7 @@ private:
void setDocumentChoosingWindow (kpDocument *doc); void setDocumentChoosingWindow (kpDocument *doc);
private: private:
kpDocument *openInternal (const KUrl &url, kpDocument *openInternal (const QUrl &url,
const QSize &fallbackDocSize, const QSize &fallbackDocSize,
bool newDocSameNameIfNotExist); bool newDocSameNameIfNotExist);
// Same as above except that it: // Same as above except that it:
...@@ -333,14 +333,14 @@ private: ...@@ -333,14 +333,14 @@ private:
// to a user open request e.g. File / Open or "kolourpaint doesexist.png". // to a user open request e.g. File / Open or "kolourpaint doesexist.png".
// It should not be used for session restore - in that case, it does not // It should not be used for session restore - in that case, it does not
// make sense to bubble the Recent Files list. // make sense to bubble the Recent Files list.
bool open (const KUrl &url, bool newDocSameNameIfNotExist = false); bool open (const QUrl &url, bool newDocSameNameIfNotExist = false);
QList<QUrl> askForOpenURLs(const QString &caption, QList<QUrl> askForOpenURLs(const QString &caption,
bool allowMultipleURLs = true); bool allowMultipleURLs = true);
private slots: private slots:
void slotOpen (); void slotOpen ();
void slotOpenRecent (const KUrl &url); void slotOpenRecent (const QUrl &url);
void slotScan (); void slotScan ();
void slotScanned (const QImage &image, int); void slotScanned (const QImage &image, int);
...@@ -354,7 +354,7 @@ private slots: ...@@ -354,7 +354,7 @@ private slots:
bool slotSave (); bool slotSave ();
private: private:
KUrl askForSaveURL (const QString &caption, QUrl askForSaveURL (const QString &caption,
const QString &startURL, const QString &startURL,
const kpImage &imageToBeSaved, const kpImage &imageToBeSaved,
const kpDocumentSaveOptions &startSaveOptions, const kpDocumentSaveOptions &startSaveOptions,
...@@ -603,7 +603,7 @@ private slots: ...@@ -603,7 +603,7 @@ private slots:
void slotColorsKDE (); void slotColorsKDE ();
private: private:
bool openColors (const KUrl &url); bool openColors (const QUrl &url);
private slots: private slots:
void slotColorsOpen (); void slotColorsOpen ();
......
...@@ -310,7 +310,7 @@ struct kpMainWindowPrivate ...@@ -310,7 +310,7 @@ struct kpMainWindowPrivate
KScanDialog *scanDialog; KScanDialog *scanDialog;
KUrl lastExportURL; QUrl lastExportURL;
kpDocumentSaveOptions lastExportSaveOptions; kpDocumentSaveOptions lastExportSaveOptions;
bool exportFirstTime; bool exportFirstTime;
...@@ -327,7 +327,7 @@ struct kpMainWindowPrivate ...@@ -327,7 +327,7 @@ struct kpMainWindowPrivate
*actionSelectAll, *actionDeselect, *actionSelectAll, *actionDeselect,
*actionCopyToFile, *actionPasteFromFile; *actionCopyToFile, *actionPasteFromFile;
KUrl lastCopyToURL; QUrl lastCopyToURL;
kpDocumentSaveOptions lastCopyToSaveOptions; kpDocumentSaveOptions lastCopyToSaveOptions;
bool copyToFirstTime; bool copyToFirstTime;
......
...@@ -299,7 +299,7 @@ void kpMainWindow::slotColorsKDE () ...@@ -299,7 +299,7 @@ void kpMainWindow::slotColorsKDE ()
} }
// private // private
bool kpMainWindow::openColors (const KUrl &url) bool kpMainWindow::openColors (const QUrl &url)
{ {
if (!colorCells ()->openColorCollection (url)) if (!colorCells ()->openColorCollection (url))
return false; return false;
......
...@@ -847,7 +847,7 @@ void kpMainWindow::slotCopyToFile () ...@@ -847,7 +847,7 @@ void kpMainWindow::slotCopyToFile ()
kpDocumentSaveOptions chosenSaveOptions; kpDocumentSaveOptions chosenSaveOptions;
bool allowOverwritePrompt, allowLossyPrompt; bool allowOverwritePrompt, allowLossyPrompt;
KUrl chosenURL = askForSaveURL (i18nc ("@title:window", "Copy to File"), QUrl chosenURL = askForSaveURL (i18nc ("@title:window", "Copy to File"),
d->lastCopyToURL.url (), d->lastCopyToURL.url (),
imageToSave, imageToSave,
d->lastCopyToSaveOptions, d->lastCopyToSaveOptions,
...@@ -901,7 +901,7 @@ void kpMainWindow::slotPasteFromFile () ...@@ -901,7 +901,7 @@ void kpMainWindow::slotPasteFromFile ()
if (urls.count () != 1) if (urls.count () != 1)
return; return;
KUrl url = urls.first (); QUrl url = urls.first ();
<