Merge pull request #4 from gupascal/master

Added a setSize() function to the grid widget
Moved an internal function to a base class to remove duplicate code