uint32_t Crc32::block(const uint32_t *words, uint32_t count) { reset(); while (count) { addInline(*words); words++; count--; } return get(); }
ParameterComboBox::ParameterComboBox(ParameterObject *parameterobject, int showDescription) { object = parameterobject; setName(QString::fromStdString(object->name)); setValue(); connect(comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(onChanged(int))); if (showDescription == 0) { setDescription(object->description); }else if(showDescription == 1){ addInline(object->description); }else { comboBox->setToolTip(object->description); } IgnoreWheelWhenNotFocused *ignoreWheelWhenNotFocused = new IgnoreWheelWhenNotFocused(); comboBox->installEventFilter(ignoreWheelWhenNotFocused); }