forked from qt-creator/qt-creator
Utils: Make Aspect::addToLayout() const
It's conceptionally const, and would be useful to use as such, but the current implementations often modifie mutable state. To ease the transition pain, rename the previous non-const version to addToLayoutImpl() and call it after const_cast'ing. Change-Id: Ic8ca38e40f5df69c3d11121f96ea37648cf4feb7 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -337,7 +337,7 @@ IosDeviceTypeAspect::IosDeviceTypeAspect(AspectContainer *container, IosRunConfi
|
||||
this, &IosDeviceTypeAspect::deviceChanges);
|
||||
}
|
||||
|
||||
void IosDeviceTypeAspect::addToLayout(Layouting::Layout &parent)
|
||||
void IosDeviceTypeAspect::addToLayoutImpl(Layouting::Layout &parent)
|
||||
{
|
||||
m_deviceTypeComboBox = new QComboBox;
|
||||
m_deviceTypeComboBox->setModel(&m_deviceTypeModel);
|
||||
|
Reference in New Issue
Block a user