VCWidget* VCSlider::createCopy(VCWidget* parent) { Q_ASSERT(parent != nullptr); VCSlider* slider = new VCSlider(m_doc, parent); if (slider->copyFrom(this) == false) { delete slider; slider = nullptr; } return slider; }
VCWidget* VCSlider::createCopy(VCWidget* parent) { Q_ASSERT(parent != NULL); VCSlider* slider = new VCSlider(parent, m_doc); if (slider->copyFrom(this) == false) { delete slider; slider = NULL; } return slider; }