Refreshed for Qt 5.2