Make all notes legoto?

Is it possible to make all notes legato? (Fill empty spaces between notes?)

Not with a single operation, the only way is to manually select all notes that should be e.g. 1 quarter longer, change their length, then repeat with another group of notes that should be e.g. 1/8 longer, etc.

Thank you for your reply. I was hoping for a less tedious faster way. But it is what it is.