If you have the window buttons extension running, check for this option.
Otherwise look for "Hide titles" in Kwin scripts.