]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #759: forbid input text into Color column during Land cover map import.
authormkr <mkr@opencascade.com>
Wed, 25 Nov 2015 12:54:08 +0000 (15:54 +0300)
committermkr <mkr@opencascade.com>
Wed, 25 Nov 2015 12:54:08 +0000 (15:54 +0300)
src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx

index f075284df30f018df491b770965bc76db2d1f07f..d99c13e4a83535de39e21cc95cb03a0a8078bb90 100644 (file)
@@ -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);
   }
 
 }