Commit 1d69240e authored by Christoph Feck's avatar Christoph Feck

KUrl::List -> QList<QUrl>

This is a global search/replace, the needed manual changes
will be committed separately
parent 4aa58944
......@@ -798,7 +798,7 @@ void kpMainWindow::dragEnterEvent (QDragEnterEvent *e)
// It's faster to test for QMimeData::hasText() first due to the
// lazy evaluation of the '||' operator.
e->setAccepted (e->mimeData ()->hasText () ||
KUrl::List::canDecode (e->mimeData ()) ||
QList<QUrl>::canDecode (e->mimeData ()) ||
kpSelectionDrag::canDecode (e->mimeData ()));
}
......@@ -811,7 +811,7 @@ void kpMainWindow::dropEvent (QDropEvent *e)
kDebug () << "kpMainWindow::dropEvent" << e->pos ();
#endif
KUrl::List urls;
QList<QUrl> urls;
kpAbstractImageSelection *sel = kpSelectionDrag::decode (e->mimeData ());
if (sel)
......@@ -823,7 +823,7 @@ void kpMainWindow::dropEvent (QDropEvent *e)
paste (*sel);
delete sel;
}
else if (!(urls = KUrl::List::fromMimeData (e->mimeData ())).isEmpty ())
else if (!(urls = QList<QUrl>::fromMimeData (e->mimeData ())).isEmpty ())
{
// LOTODO: kpSetOverrideCursorSaver cursorSaver (Qt::waitCursor);
//
......
......@@ -335,7 +335,7 @@ private:
// make sense to bubble the Recent Files list.
bool open (const KUrl &url, bool newDocSameNameIfNotExist = false);
KUrl::List askForOpenURLs(const QString &caption,
QList<QUrl> askForOpenURLs(const QString &caption,
bool allowMultipleURLs = true);
private slots:
......
......@@ -895,7 +895,7 @@ void kpMainWindow::slotPasteFromFile ()
toolEndShape ();
KUrl::List urls = askForOpenURLs(i18nc ("@title:window", "Paste From File"),
QList<QUrl> urls = askForOpenURLs(i18nc ("@title:window", "Paste From File"),
false/*only 1 URL*/);
if (urls.count () != 1)
......
......@@ -426,7 +426,7 @@ bool kpMainWindow::open (const KUrl &url, bool newDocSameNameIfNotExist)
//---------------------------------------------------------------------
// private
KUrl::List kpMainWindow::askForOpenURLs(const QString &caption, bool allowMultipleURLs)
QList<QUrl> kpMainWindow::askForOpenURLs(const QString &caption, bool allowMultipleURLs)
{
QStringList mimeTypes = KImageIO::mimeTypes (KImageIO::Reading);
#if DEBUG_KP_MAIN_WINDOW
......@@ -450,7 +450,7 @@ KUrl::List kpMainWindow::askForOpenURLs(const QString &caption, bool allowMultip
if (fd.exec ())
return fd.selectedUrls ();
else
return KUrl::List ();
return QList<QUrl> ();
}
//---------------------------------------------------------------------
......@@ -460,9 +460,9 @@ void kpMainWindow::slotOpen ()
{
toolEndShape ();
const KUrl::List urls = askForOpenURLs(i18nc("@title:window", "Open Image"));
const QList<QUrl> urls = askForOpenURLs(i18nc("@title:window", "Open Image"));
for (KUrl::List::const_iterator it = urls.begin ();
for (QList<QUrl>::const_iterator it = urls.begin ();
it != urls.end ();
++it)
{
......
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