205{
206
207 QString
ct = cb->currentText();
210
211 bool save = cb->blockSignals(
true);
212
213 cb->clear();
214
215 bool enabled = false;
218 cb->setEnabled(false);
219 } else {
220 cb->addItems(l);
221
222 int i = restoredSelection.isEmpty() ? -1 : cb->findText(restoredSelection);
223 if (i<0)
224 i =
ct.isEmpty() ? -1 : cb->findText(ct);
225 restoredSelection = "";
226
227 if (i>=0) {
228 cb->setCurrentIndex(i);
229 } else {
230
231
232 int i_vp1(-1), i_atlas(-1);
233 for (
int j = 0;
j <cb->count();++
j) {
234 if (i_vp1==-1&&cb->itemText(j).contains("vp1",Qt::CaseInsensitive))
236 if (i_atlas==-1&&cb->itemText(j).contains("atlas",Qt::CaseInsensitive))
238 }
239 if (i_vp1>=0)
240 cb->setCurrentIndex(i_vp1);
241 else if (i_atlas>=0)
242 cb->setCurrentIndex(i_atlas);
243 }
245 enabled = true;
246 cb->setEnabled(true);
247 }
248
249 if (!save)
250 cb->blockSignals(false);
251 return enabled;
252}
static const QString noneAvailString
l
Printing final latex table to .tex output file.
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
save(self, fileName="./columbo.out")