Porting from KDE 3.5.10