All table should not be editable

--HG--
branch : develop
This commit is contained in:
Valentina Zhuravska 2016-01-13 10:55:10 +02:00
parent 2ecc8b944e
commit 48bf54dfd9

View File

@ -177,6 +177,9 @@ void DialogHistory::FillTable()
item->setFlags(item->flags() ^ Qt::ItemIsEditable); item->setFlags(item->flags() ^ Qt::ItemIsEditable);
ui->tableWidget->setItem(currentRow, 1, item); ui->tableWidget->setItem(currentRow, 1, item);
++count; ++count;
item = ui->tableWidget->item(currentRow, 0);
item->setFlags(item->flags() ^ Qt::ItemIsEditable);
} }
} }
ui->tableWidget->setRowCount(count);//Real row count ui->tableWidget->setRowCount(count);//Real row count