Solved it thanks to the follow code:

http://websvn.kde.org/trunk/KDE/kdee...pp?view=markup