Path: blob/main/cad/fritzing/files/patch-src_items_resistor.cpp
19260 views
--- src/items/resistor.cpp.orig 2025-04-02 10:33:24 UTC1+++ src/items/resistor.cpp2@@ -260,7 +260,7 @@ bool Resistor::collectExtraInfo(QWidget * parent, cons3validator->setSymbol(OhmSymbol);4validator->setConverter(TextUtils::convertFromPowerPrefix);5validator->setBounds(MIN_RESISTANCE, MAX_RESISTANCE);6- validator->setRegularExpression(QRegularExpression(QString("((\\d{1,10})|(\\d{1,10}\\.)|(\\d{1,10}\\.\\d{1,5}))[\\x%1umkMG]{0,1}[\\x03A9]{0,1}").arg(TextUtils::MicroSymbolCode, 4, 16, QChar('0'))));7+ validator->setRegularExpression(QRegularExpression(QString("((\\d{1,10})|(\\d{1,10}\\.)|(\\d{1,10}\\.\\d{1,5}))[\\x%1umkMG]{0,1}[\\x03A9]{0,1}").arg(static_cast<int>(TextUtils::MicroSymbolCode), 4, 16, QChar('0'))));8focusOutComboBox->setValidator(validator);9connect(focusOutComboBox->validator(), SIGNAL(sendState(QValidator::State)), this, SLOT(textModified(QValidator::State)));10connect(focusOutComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(resistanceEntry(int)));111213