From: ouv Date: Tue, 25 Mar 2008 08:39:56 +0000 (+0000) Subject: Bug IPAL19348 : Qt4 porting: Error message is shown after pressing of ?Filter? button... X-Git-Tag: VSR_280308~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0e217d88a695bd7ab058b64438fa67c6b506690;p=modules%2Fsmesh.git Bug IPAL19348 : Qt4 porting: Error message is shown after pressing of ?Filter? button in ?Modification of orientation? dialog box --- diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index caa1fb900..b4af71054 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -1595,12 +1595,14 @@ SMESHGUI_FilterTable::Table* SMESHGUI_FilterTable::createTable (QWidget* thePar QString aCoStr; aCoStr.fill(' ', 10); - aTable->horizontalHeaderItem(0)->setText(tr("CRITERION") + aCrStr); - aTable->horizontalHeaderItem(1)->setText(tr("COMPARE") + aCoStr); - aTable->horizontalHeaderItem(2)->setText(tr("THRESHOLD_VALUE")); - aTable->horizontalHeaderItem(3)->setText(tr("UNARY")); - aTable->horizontalHeaderItem(4)->setText(tr("BINARY") + " "); - aTable->horizontalHeaderItem(5)->setText(tr("ID")); + QStringList aHeaderLabels; + aHeaderLabels.append( tr("CRITERION") + aCrStr ); + aHeaderLabels.append( tr("COMPARE") + aCoStr ); + aHeaderLabels.append( tr("THRESHOLD_VALUE") ); + aHeaderLabels.append( tr("UNARY") ); + aHeaderLabels.append( tr("BINARY") + " " ); + aHeaderLabels.append( tr("ID") ); + aTable->setHorizontalHeaderLabels( aHeaderLabels ); // set geometry of the table for (int i = 0; i <= 4; i++)