Beispiel #1
0
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;
}
Beispiel #2
0
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;
}