Ok, I've done a little research and I think you should try KWin::setIcons().