Initial port to KF5.

REVIEW: 120068