Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/fritzing/files/patch-src_items_resistor.cpp
19260 views
1
--- src/items/resistor.cpp.orig 2025-04-02 10:33:24 UTC
2
+++ src/items/resistor.cpp
3
@@ -260,7 +260,7 @@ bool Resistor::collectExtraInfo(QWidget * parent, cons
4
validator->setSymbol(OhmSymbol);
5
validator->setConverter(TextUtils::convertFromPowerPrefix);
6
validator->setBounds(MIN_RESISTANCE, MAX_RESISTANCE);
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(TextUtils::MicroSymbolCode, 4, 16, QChar('0'))));
8
+ 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'))));
9
focusOutComboBox->setValidator(validator);
10
connect(focusOutComboBox->validator(), SIGNAL(sendState(QValidator::State)), this, SLOT(textModified(QValidator::State)));
11
connect(focusOutComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(resistanceEntry(int)));
12
13