equal
deleted
inserted
replaced
575 fileConfig.endArray(); |
575 fileConfig.endArray(); |
576 } |
576 } |
577 |
577 |
578 QVariant AmmoSchemeModel::headerData(int section, Qt::Orientation orientation, int role) const |
578 QVariant AmmoSchemeModel::headerData(int section, Qt::Orientation orientation, int role) const |
579 { |
579 { |
|
580 Q_UNUSED(section); |
|
581 Q_UNUSED(orientation); |
|
582 Q_UNUSED(role); |
|
583 |
580 return QVariant(); |
584 return QVariant(); |
581 } |
585 } |
582 |
586 |
583 int AmmoSchemeModel::rowCount(const QModelIndex &parent) const |
587 int AmmoSchemeModel::rowCount(const QModelIndex &parent) const |
584 { |
588 { |
596 return defaultScheme.size(); |
600 return defaultScheme.size(); |
597 } |
601 } |
598 |
602 |
599 Qt::ItemFlags AmmoSchemeModel::flags(const QModelIndex & index) const |
603 Qt::ItemFlags AmmoSchemeModel::flags(const QModelIndex & index) const |
600 { |
604 { |
|
605 Q_UNUSED(index); |
|
606 |
601 return |
607 return |
602 Qt::ItemIsEnabled |
608 Qt::ItemIsEnabled |
603 | Qt::ItemIsSelectable |
609 | Qt::ItemIsSelectable |
604 | Qt::ItemIsEditable; |
610 | Qt::ItemIsEditable; |
605 } |
611 } |
618 return true; |
624 return true; |
619 } |
625 } |
620 |
626 |
621 bool AmmoSchemeModel::insertRows(int row, int count, const QModelIndex & parent) |
627 bool AmmoSchemeModel::insertRows(int row, int count, const QModelIndex & parent) |
622 { |
628 { |
|
629 Q_UNUSED(count); |
|
630 |
623 beginInsertRows(parent, row, row); |
631 beginInsertRows(parent, row, row); |
624 |
632 |
625 QList<QVariant> newScheme = defaultScheme; |
633 QList<QVariant> newScheme = defaultScheme; |
626 newScheme[0] = QVariant(tr("new")); |
634 newScheme[0] = QVariant(tr("new")); |
627 |
635 |
682 netScheme = defaultScheme; |
690 netScheme = defaultScheme; |
683 } |
691 } |
684 |
692 |
685 QVariant NetAmmoSchemeModel::headerData(int section, Qt::Orientation orientation, int role) const |
693 QVariant NetAmmoSchemeModel::headerData(int section, Qt::Orientation orientation, int role) const |
686 { |
694 { |
|
695 Q_UNUSED(section); |
|
696 Q_UNUSED(orientation); |
|
697 Q_UNUSED(role); |
|
698 |
687 return QVariant(); |
699 return QVariant(); |
688 } |
700 } |
689 |
701 |
690 int NetAmmoSchemeModel::rowCount(const QModelIndex & parent) const |
702 int NetAmmoSchemeModel::rowCount(const QModelIndex & parent) const |
691 { |
703 { |