[Companion] Refactor RawSource & RawSwitch data models to abstract the base classes and reduce redundancy; Move data models to own folder.

This commit is contained in:
Max Paperno
2018-07-12 13:20:07 -04:00
parent 70aa7c6ad8
commit ca63b92e5b
20 changed files with 440 additions and 457 deletions
+1 -3
View File
@@ -19,8 +19,7 @@
*/
#include "customfunctions.h"
#include "switchitemmodel.h"
#include "rawsourceitemmodel.h"
#include "rawitemfilteredmodel.h"
#include "helpers.h"
#include "appdata.h"
@@ -381,7 +380,6 @@ void CustomFunctionsPanel::refreshCustomFunction(int i, bool modified)
unsigned int widgetsMask = 0;
if (modified) {
const bool wasEmpty = cfn.isEmpty();
cfn.swtch = RawSwitch(fswtchSwtch[i]->currentData().toInt());
cfn.func = func;
cfn.enabled = fswtchEnable[i]->isChecked();