Changed the resize function, refactoring pt2
Merge pull request #1 from Qt-dev/development

Changed the resize function, refactoring pt2