[qt] refactorize: move tree graph drawing into a dedicated mixin [applied]