make the ktextwidgets dependency optional

Authored by sandsmark on Dec 4 2018, 5:26 PM.