Merged setGeometry and setGrid