Copy from kde-runtime revision c982c2326ba93c4380ad950ada8d93b5582e4e4f.
To be removed when the dms is moved to kdelibs (probably kde 4.9)