Update for Qt 5