1. piorekf
  2. PLUG

Commits

piorekf  committed f0c0864

Added brightness parameter to saving and loading file

  • Participants
  • Parent commits 3ed8f4f
  • Branches default

Comments (0)

Files changed (2)

File plug/loadfromfile.cpp

View file
                     i = xml->readElementText().toInt();
                     amplifier_settings->sag = i;
                     break;
+                case 20:
+                    amplifier_settings->brightness = (xml->readElementText().toInt()?true:false);
+                    break;
                 }
             }
         }

File plug/savetofile.cpp

View file
 
     xml->writeStartElement("Param");
     xml->writeAttribute("ControlIndex", "20");
-    xml->writeCharacters("0");
+    xml->writeCharacters(QString("%1").arg(settings.brightness?"1":"0"));
     xml->writeEndElement();
 
     xml->writeStartElement("Param");