Fixed views.preferences for PyQt.