[Dialog] Use setPosition / setSize instead of setting everything individually
Reduces the amount of unneccessary layouting done.
Differential Revision: https://phabricator.kde.org/D4009