refactor QGraphicsView into a separate tikz::ui::Renderer class