equal
deleted
inserted
replaced
567 << QVariant(100) // get away time 41 |
567 << QVariant(100) // get away time 41 |
568 << QVariant(0) // world edge 42 |
568 << QVariant(0) // world edge 42 |
569 << QVariant() // scriptparam 43 |
569 << QVariant() // scriptparam 43 |
570 ; |
570 ; |
571 |
571 |
572 QList<QVariant> construction; |
572 QList<QVariant> construction; |
573 construction |
573 construction |
574 << predefSchemesNames[10] // name 0 |
574 << predefSchemesNames[10] // name 0 |
575 << QVariant(false) // fortsmode 1 |
575 << QVariant(false) // fortsmode 1 |
576 << QVariant(false) // team divide 2 |
576 << QVariant(false) // team divide 2 |
577 << QVariant(false) // solid land 3 |
577 << QVariant(false) // solid land 3 |
615 << QVariant(100) // get away time 41 |
615 << QVariant(100) // get away time 41 |
616 << QVariant(0) // world edge 42 |
616 << QVariant(0) // world edge 42 |
617 << QVariant() // scriptparam 43 |
617 << QVariant() // scriptparam 43 |
618 ; |
618 ; |
619 |
619 |
620 QList<QVariant> hedgeeditor; |
620 QList<QVariant> hedgeeditor; |
621 hedgeeditor |
621 hedgeeditor |
622 << predefSchemesNames[11] // name 0 |
622 << predefSchemesNames[11] // name 0 |
623 << QVariant(false) // fortsmode 1 |
623 << QVariant(false) // fortsmode 1 |
624 << QVariant(false) // team divide 2 |
624 << QVariant(false) // team divide 2 |
625 << QVariant(false) // solid land 3 |
625 << QVariant(false) // solid land 3 |
662 << QVariant(100) // rope modfier 40 |
662 << QVariant(100) // rope modfier 40 |
663 << QVariant(100) // get away time 41 |
663 << QVariant(100) // get away time 41 |
664 << QVariant(0) // world edge 42 |
664 << QVariant(0) // world edge 42 |
665 << QVariant() // scriptparam 43 |
665 << QVariant() // scriptparam 43 |
666 ; |
666 ; |
667 |
667 |
668 |
668 |
669 |
669 |
670 schemes.append(defaultScheme); |
670 schemes.append(defaultScheme); |
671 schemes.append(proMode); |
671 schemes.append(proMode); |
672 schemes.append(shoppa); |
672 schemes.append(shoppa); |
673 schemes.append(cleanslate); |
673 schemes.append(cleanslate); |
674 schemes.append(minefield); |
674 schemes.append(minefield); |
894 { |
894 { |
895 qWarning("Incorrect scheme cfg size"); |
895 qWarning("Incorrect scheme cfg size"); |
896 return; |
896 return; |
897 } |
897 } |
898 |
898 |
|
899 beginResetModel(); |
|
900 |
899 cfg[cfg.size()-1] = cfg[cfg.size()-1].mid(1); |
901 cfg[cfg.size()-1] = cfg[cfg.size()-1].mid(1); |
900 |
902 |
901 for(int i = 0; i < cfg.size(); ++i) |
903 for(int i = 0; i < cfg.size(); ++i) |
902 netScheme[i] = QVariant(cfg[i]); |
904 netScheme[i] = QVariant(cfg[i]); |
903 |
905 |
904 reset(); |
906 endResetModel(); |
905 } |
907 } |