Core: modernize type checking
This commit is contained in:
@@ -125,7 +125,7 @@ void TaskImage::initialiseTransparency()
|
||||
// NOLINTBEGIN
|
||||
auto vp = Application::Instance->getViewProvider(feature.get());
|
||||
App::Property* prop = vp->getPropertyByName("Transparency");
|
||||
if (prop && prop->getTypeId().isDerivedFrom(App::PropertyInteger::getClassTypeId())) {
|
||||
if (prop && prop->isDerivedFrom<App::PropertyInteger>()) {
|
||||
auto Transparency = static_cast<App::PropertyInteger*>(prop);
|
||||
ui->spinBoxTransparency->setValue(Transparency->getValue());
|
||||
ui->sliderTransparency->setValue(Transparency->getValue());
|
||||
|
||||
Reference in New Issue
Block a user