Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /src/lib/simulator/src/electronics/components/binarycounter.cpp [9e3b00] .. [812dd5] Maximize Restore

  Switch to side-by-side view

--- a/src/lib/simulator/src/electronics/components/binarycounter.cpp
+++ b/src/lib/simulator/src/electronics/components/binarycounter.cpp
@@ -79,10 +79,10 @@
 void BinaryCounter::propertyChanged(Property& theProperty, QVariant newValue, QVariant oldValue)
 {
     if( theProperty.name() == "bitcount"){
-        initPins( newValue.asInt());
+        initPins( newValue.toInt());
     }
     if(theProperty.name() == "trig"){
-        m_bTriggerHigh = newValue.asString() == "Rising";
+        m_bTriggerHigh = newValue.toString() == "Rising";
         // setDisplayText(">", m_bTriggerHigh ? "^>" : "_>");
     }
     Q_UNUSED(oldValue);