Fixed compilation with Qt 5