Skip to content
Snippets Groups Projects
Commit 967e7965 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

test prints to debug initial combo model selection

parent 3ea4d070
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,9 @@ void I0mapmon_topo::m_onLambdaChanged(const QVector<double> &la) {
bool checked = m_cb_model == nullptr || m_cb_model->findItem(la.at(i)) == nullptr || m_cb_model->findItem(la.at(i))->data(Qt::CheckStateRole).toBool();
printf("I0mapmon_topo::m_onLambdaChanged \e[1;33m %f --> %d\e[0m m_cb_model %p \n", la[i], m_cb_model);
if(m_cb_model)
printf(" cb_model not null: found item %p for lam %f\n", m_cb_model->findItem(la.at(i)), la.at(i));
printf(" cb_model not null: found item %p for lam %f item count %d\n", m_cb_model->findItem(la.at(i)), la.at(i), m_cb_model->rowCount());
if(m_cb_model->findItem(la.at(i)), la.at(i))
printf(" the item is checked? item : %s checked %d\n", qstoc(m_cb_model->findItem(la.at(i))->text()), m_cb_model->findItem(la.at(i))->data(Qt::CheckStateRole).toBool());
printf("checked is \e[1;32m%d\e[0m\n", checked);
if(checked) {
wlens << QString::number(la.at(i));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment