diff --git a/src/widgets/krun.h b/src/widgets/krun.h --- a/src/widgets/krun.h +++ b/src/widgets/krun.h @@ -234,11 +234,14 @@ * @param suggestedFileName see setSuggestedFileName * @param asn Application startup notification id, if any (otherwise ""). * @return 0 on error, the process ID on success + * @deprecated since 5.61, consider using runApplication instead * @since 5.6 */ - static qint64 runService(const KService &service, const QList &urls, QWidget *window, +#ifndef KIOWIDGETS_NO_DEPRECATED + static qint64 KIOWIDGETS_DEPRECATED runService(const KService &service, const QList &urls, QWidget *window, bool tempFiles = false, const QString &suggestedFileName = QString(), - const QByteArray &asn = QByteArray()); // TODO KF6: deprecate/remove + const QByteArray &asn = QByteArray()); +#endif enum RunFlag { DeleteTemporaryFiles = 0x1, ///< the URLs passed to the service will be deleted when it exits (if the URLs are local files) diff --git a/src/widgets/krun.cpp b/src/widgets/krun.cpp --- a/src/widgets/krun.cpp +++ b/src/widgets/krun.cpp @@ -773,6 +773,7 @@ return runApplicationImpl(service, urls, window, flags, suggestedFileName, asn); } +#ifndef KIOWIDGETS_NO_DEPRECATED qint64 KRun::runService(const KService &_service, const QList &_urls, QWidget *window, bool tempFiles, const QString &suggestedFileName, const QByteArray &asn) { @@ -849,6 +850,7 @@ //qDebug() << "startServiceByDesktopPath worked fine"; return pid; } +#endif bool KRun::run(const QString &_exec, const QList &_urls, QWidget *window, const QString &_name, const QString &_icon, const QByteArray &asn)