Skip to content
Snippets Groups Projects
Commit a2b06ae4 authored by Renne Thomas's avatar Renne Thomas
Browse files

Correct assignement percentage #25

parent 2146446f
No related branches found
No related tags found
1 merge request!25Correct Issue https://forgemia.inra.fr/pappso/xtpcpp/-/issues/28
......@@ -97,7 +97,6 @@ MsIdentificationListWindow::MsIdentificationListWindow(ProjectWindow *parent)
ui->tableView->setSortingEnabled(true);
ui->tableView->horizontalHeader()->setSectionsMovable(true);
mp_proxyModel->resteItemDelegates();
MsIdentificationListQActionColumn *p_action;
for(int i = 0; i < mp_msidTableModel->columnCount(); i++)
......@@ -226,7 +225,7 @@ MsIdentificationListWindow::setIdentificationDataSourceSpList(
mp_msidTableModel->setIdentificationDataSourceSpList(
identificationDataSourceSpList);
mp_proxyModel->resteItemDelegates();
qDebug();
}
......
......@@ -247,9 +247,7 @@ MsIdentificationTableProxyModel::resteItemDelegates() const
for(int i = 0; i < columnCount(); ++i)
{
qDebug() << (std::int8_t)msIdentificationListColumn::percent_assign;
qDebug() << mapToSource(index(0, i)).column();
m_msid_list_window->ui->tableView->setItemDelegateForColumn(
m_msid_list_window->ui->tableView->setItemDelegateForColumn(
i, m_msid_list_window->ui->tableView->itemDelegate());
if(mapToSource(index(0, i)).column() ==
(std::int8_t)msIdentificationListColumn::percent_assign)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment