[qt] format, inline functions