From c0e885340cc906f1abb190fc781fc30a83e01730 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 25 Nov 2015 15:54:08 +0300 Subject: [PATCH] refs #759: forbid input text into Color column during Land cover map import. --- src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx b/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx index f075284d..d99c13e4 100644 --- a/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx @@ -294,8 +294,10 @@ void HYDROGUI_ImportLandCoverMapDlg::FillCorrespondenceTable(const QStringList& // for (int i = 0; i < aFCSize; i++) { - myCorrTableWidget->setItem(i, 2, new QTableWidgetItem); - myCorrTableWidget->item(i, 2)->setBackground(myStrColors[theDefCBIndices[i]]); + QTableWidgetItem* aTWI = new QTableWidgetItem; + aTWI->setBackground(myStrColors[theDefCBIndices[i]]); + aTWI->setFlags(Qt::NoItemFlags); + myCorrTableWidget->setItem(i, 2, aTWI); } } -- 2.39.2