[Qt][Gtk] build fix after r140752.