| 15 | } |
| 16 | |
| 17 | QVector<QString> EntryPanel::getEntryMapfromUI(){ |
| 18 | QVector<QString> selectEntryList; |
| 19 | |
| 20 | // 判断每个 QCheckBox 是否被选中 |
| 21 | if (ui->HP->isChecked()) { |
| 22 | selectEntryList.push_back("HP"); |
| 23 | } |
| 24 | |
| 25 | if (ui->HPratio->isChecked()) { |
| 26 | selectEntryList.push_back("HPRatio"); |
| 27 | } |
| 28 | |
| 29 | if (ui->aeroDMG->isChecked()) { |
| 30 | selectEntryList.push_back("aeroDMG"); |
| 31 | } |
| 32 | |
| 33 | if (ui->attack->isChecked()) { |
| 34 | selectEntryList.push_back("attack"); |
| 35 | } |
| 36 | |
| 37 | if (ui->attackRatio->isChecked()) { |
| 38 | selectEntryList.push_back("attackRatio"); |
| 39 | } |
| 40 | |
| 41 | if (ui->criticalDMG->isChecked()) { |
| 42 | selectEntryList.push_back("criticalDMG"); |
| 43 | } |
| 44 | |
| 45 | if (ui->criticalRatio->isChecked()) { |
| 46 | selectEntryList.push_back("criticalRatio"); |
| 47 | } |
| 48 | |
| 49 | if (ui->defence->isChecked()) { |
| 50 | selectEntryList.push_back("defence"); |
| 51 | } |
| 52 | |
| 53 | if (ui->defenceRatio->isChecked()) { |
| 54 | selectEntryList.push_back("defenceRatio"); |
| 55 | } |
| 56 | |
| 57 | if (ui->electroDMG->isChecked()) { |
| 58 | selectEntryList.push_back("electroDMG"); |
| 59 | } |
| 60 | |
| 61 | if (ui->energyRegen->isChecked()) { |
| 62 | selectEntryList.push_back("energyRegen"); |
| 63 | } |
| 64 | |
| 65 | if (ui->fusionDMG->isChecked()) { |
| 66 | selectEntryList.push_back("fusionDMG"); |
| 67 | } |
| 68 | |
| 69 | if (ui->glacioDMG->isChecked()) { |
| 70 | selectEntryList.push_back("glacioDMG"); |
| 71 | } |
| 72 | |
| 73 | if (ui->havocDMG->isChecked()) { |
| 74 | selectEntryList.push_back("havocDMG"); |
no test coverage detected