moved util. func. out of qtgui file
Authored by: Jean-Francois Dockes 2011-05-09
Parent(s): [f1c651]
Child(ren): [631121]