qtui: port statusbar code from gtkui