Fixed casts from static_cast to qobject_cast