Example #1
0
void BigButtons::fromJson( QJsonObject obj)
{
    setName(obj.value("name").toString());
    setColor(QColor(obj.value("col").toString()));
    setPatternName(obj.value("patternName").toString());
    setLed(obj.value("led").toDouble());
}
Example #2
0
void Blink1Input::fromJson( QJsonObject obj)
{
    setName( obj.value("name").toString() );
    setType(obj.value("type").toString());
    setArg1(obj.value("arg1").toString());
    setArg2(obj.value("arg2").toString());
    setDate(obj.value("date").toDouble());
    setFreq(obj.value("freq").toDouble());
    setFreqCounter(obj.value("freqCounter").toDouble());
    setPatternName(obj.value("patternName").toString());
}