Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5f3959c1 authored by Vangelis Tasoulas's avatar Vangelis Tasoulas Committed by Albert Astals Cid

Replaced calls to the deprecated function KJobUiDelegate *ui().

Summary:
Replaced calls to the function KJobUiDelegate *ui() with the function KJobUiDelegate *uiDelegate().
ui() is deprecated and the compiler is raising warnings. Since 5.0, ui() can now be replaced with uiDelegate().

Reviewers: gateau, lukas, broulik

Reviewed By: broulik

Subscribers: broulik, cfeck

Differential Revision: https://phabricator.kde.org/D7636
parent 171e602f
......@@ -102,7 +102,7 @@ static void copyMoveOrLink(Operation operation, const QList<QUrl>& urlList, QWid
Q_ASSERT(0);
}
KJobWidgets::setWindow(job, parent);
job->ui()->setAutoErrorHandlingEnabled(true);
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
}
static void delOrTrash(KIO::JobUiDelegate::DeletionType deletionType, const QList<QUrl>& urlList, QWidget* parent)
......@@ -218,7 +218,7 @@ void rename(const QUrl &oldUrl, QWidget* parent)
KIO::SimpleJob* job = KIO::rename(oldUrl, newUrl, KIO::HideProgressInfo);
KJobWidgets::setWindow(job, parent);
if (!job->exec()) {
job->ui()->showErrorMessage();
job->uiDelegate()->showErrorMessage();
return;
}
ThumbnailProvider::moveThumbnail(oldUrl, newUrl);
......
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