equal
deleted
inserted
replaced
52 << QVariant(5) // case prob 26 |
52 << QVariant(5) // case prob 26 |
53 << QVariant(3) // mines time 27 |
53 << QVariant(3) // mines time 27 |
54 << QVariant(4) // mines number 28 |
54 << QVariant(4) // mines number 28 |
55 << QVariant(0) // mine dud pct 29 |
55 << QVariant(0) // mine dud pct 29 |
56 << QVariant(2) // explosives 30 |
56 << QVariant(2) // explosives 30 |
|
57 << QVariant(35) // health case pct 31 |
|
58 << QVariant(25) // health case amt 32 |
57 ; |
59 ; |
58 |
60 |
59 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
61 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
60 QAbstractTableModel(parent), |
62 QAbstractTableModel(parent), |
61 fileConfig(fileName, QSettings::IniFormat) |
63 fileConfig(fileName, QSettings::IniFormat) |
102 << "caseprobability" // 26 |
104 << "caseprobability" // 26 |
103 << "minestime" // 27 |
105 << "minestime" // 27 |
104 << "minesnum" // 28 |
106 << "minesnum" // 28 |
105 << "minedudpct" // 29 |
107 << "minedudpct" // 29 |
106 << "explosives" // 30 |
108 << "explosives" // 30 |
|
109 << "healthprobability" // 31 |
|
110 << "healthcaseamount" // 32 |
107 ; |
111 ; |
108 |
112 |
109 QList<QVariant> proMode; |
113 QList<QVariant> proMode; |
110 proMode |
114 proMode |
111 << predefSchemesNames[1] // name 0 |
115 << predefSchemesNames[1] // name 0 |
137 << QVariant(0) // case prob 26 |
141 << QVariant(0) // case prob 26 |
138 << QVariant(3) // mines time 27 |
142 << QVariant(3) // mines time 27 |
139 << QVariant(0) // mines number 28 |
143 << QVariant(0) // mines number 28 |
140 << QVariant(0) // mine dud pct 29 |
144 << QVariant(0) // mine dud pct 29 |
141 << QVariant(2) // explosives 30 |
145 << QVariant(2) // explosives 30 |
|
146 << QVariant(35) // health case pct 31 |
|
147 << QVariant(25) // health case amt 32 |
142 ; |
148 ; |
143 |
149 |
144 QList<QVariant> shoppa; |
150 QList<QVariant> shoppa; |
145 shoppa |
151 shoppa |
146 << predefSchemesNames[2] // name 0 |
152 << predefSchemesNames[2] // name 0 |
172 << QVariant(1) // case prob 26 |
178 << QVariant(1) // case prob 26 |
173 << QVariant(3) // mines time 27 |
179 << QVariant(3) // mines time 27 |
174 << QVariant(0) // mines number 28 |
180 << QVariant(0) // mines number 28 |
175 << QVariant(0) // mine dud pct 29 |
181 << QVariant(0) // mine dud pct 29 |
176 << QVariant(0) // explosives 30 |
182 << QVariant(0) // explosives 30 |
|
183 << QVariant(0) // health case pct 31 |
|
184 << QVariant(25) // health case amt 32 |
177 ; |
185 ; |
178 |
186 |
179 QList<QVariant> cleanslate; |
187 QList<QVariant> cleanslate; |
180 cleanslate |
188 cleanslate |
181 << predefSchemesNames[3] // name 0 |
189 << predefSchemesNames[3] // name 0 |
207 << QVariant(5) // case prob 26 |
215 << QVariant(5) // case prob 26 |
208 << QVariant(3) // mines time 27 |
216 << QVariant(3) // mines time 27 |
209 << QVariant(4) // mines number 28 |
217 << QVariant(4) // mines number 28 |
210 << QVariant(0) // mine dud pct 29 |
218 << QVariant(0) // mine dud pct 29 |
211 << QVariant(2) // explosives 30 |
219 << QVariant(2) // explosives 30 |
|
220 << QVariant(35) // health case pct 31 |
|
221 << QVariant(25) // health case amt 32 |
212 ; |
222 ; |
213 |
223 |
214 QList<QVariant> minefield; |
224 QList<QVariant> minefield; |
215 minefield |
225 minefield |
216 << predefSchemesNames[4] // name 0 |
226 << predefSchemesNames[4] // name 0 |
242 << QVariant(0) // case prob 26 |
252 << QVariant(0) // case prob 26 |
243 << QVariant(0) // mines time 27 |
253 << QVariant(0) // mines time 27 |
244 << QVariant(80) // mines number 28 |
254 << QVariant(80) // mines number 28 |
245 << QVariant(0) // mine dud pct 29 |
255 << QVariant(0) // mine dud pct 29 |
246 << QVariant(0) // explosives 30 |
256 << QVariant(0) // explosives 30 |
|
257 << QVariant(35) // health case pct 31 |
|
258 << QVariant(25) // health case amt 32 |
247 ; |
259 ; |
248 |
260 |
249 QList<QVariant> barrelmayhem; |
261 QList<QVariant> barrelmayhem; |
250 barrelmayhem |
262 barrelmayhem |
251 << predefSchemesNames[5] // name 0 |
263 << predefSchemesNames[5] // name 0 |
277 << QVariant(0) // case prob 26 |
289 << QVariant(0) // case prob 26 |
278 << QVariant(0) // mines time 27 |
290 << QVariant(0) // mines time 27 |
279 << QVariant(0) // mines number 28 |
291 << QVariant(0) // mines number 28 |
280 << QVariant(0) // mine dud pct 29 |
292 << QVariant(0) // mine dud pct 29 |
281 << QVariant(80) // explosives 30 |
293 << QVariant(80) // explosives 30 |
|
294 << QVariant(35) // health case pct 31 |
|
295 << QVariant(25) // health case amt 32 |
282 ; |
296 ; |
283 |
297 |
284 QList<QVariant> tunnelhogs; |
298 QList<QVariant> tunnelhogs; |
285 tunnelhogs |
299 tunnelhogs |
286 << predefSchemesNames[6] // name 0 |
300 << predefSchemesNames[6] // name 0 |
312 << QVariant(5) // case prob 26 |
326 << QVariant(5) // case prob 26 |
313 << QVariant(3) // mines time 27 |
327 << QVariant(3) // mines time 27 |
314 << QVariant(10) // mines number 28 |
328 << QVariant(10) // mines number 28 |
315 << QVariant(10) // mine dud pct 29 |
329 << QVariant(10) // mine dud pct 29 |
316 << QVariant(10) // explosives 30 |
330 << QVariant(10) // explosives 30 |
|
331 << QVariant(35) // health case pct 31 |
|
332 << QVariant(25) // health case amt 32 |
317 ; |
333 ; |
318 |
334 |
319 schemes.append(defaultScheme); |
335 schemes.append(defaultScheme); |
320 schemes.append(proMode); |
336 schemes.append(proMode); |
321 schemes.append(shoppa); |
337 schemes.append(shoppa); |