[KJobUiDelegate] Add AutoHandlingEnabled flag
ClosedPublic

Authored by dfaure on Apr 11 2020, 11:03 AM.

Details

Summary

This allows to simplify code from

KDialogJobUiDelegate *delegate = new KDialogJobUiDelegate;
delegate->setAutoErrorHandlingEnabled(true);
job->setUiDelegate(delegate);

to

job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled));

(which include warnings, just in case)

Test Plan

Builds, requires a kjobwidgets change on top to be useful.

Diff Detail

Repository
R244 KCoreAddons
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 25051
Build 25069: arc lint + arc unit