From: mkr Date: Wed, 25 Nov 2015 12:54:08 +0000 (+0300) Subject: refs #759: forbid input text into Color column during Land cover map import. X-Git-Tag: v1.5~6^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c0e885340cc906f1abb190fc781fc30a83e01730;p=modules%2Fhydro.git refs #759: forbid input text into Color column during Land cover map import. --- 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); } }