Update to work with Qt 5