fixed bug with Qt 5.0.1