Bugfix for Qt 4.