This was still in KRun so the porting to ApplicationLauncherJob
was actually losing that feature along the way.
Move KRun's handling of untrusted programs to a separate class
and provide it via an interface used by ApplicationLauncherJob
and implemented in KIOWidgets.
Ideally KIOWidget's JobUiDelegate class would implement it,
but that's an exported class so it would be BIC.
So for KF5, the JobUiDelegate registers the handler into kiogui
using an internal global setter, and in KF6 JobUiDelegate itself
can implement that interface. The benefit of this approach is
that the application code stays the same:
job->setUiDelegate(new KIO::JobUiDelegate);
We'll have to update all the "new KDialogUiDelegate" to the above
line instead, where using ApplicationLauncherJob.