C++ (Qt)bool AppendText::mergeWith(const QUndoCommand *other){ if (other->id() != id()) // make sure other is also an AppendText command return false; m_text += static_cast<const AppendText*>(other)->m_text; return true;}
C++ (Qt)QAbstractSpinBox::setAccelerated( true );