]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug fixing
authormtn <mtn@opencascade.com>
Mon, 28 Dec 2009 07:04:31 +0000 (07:04 +0000)
committermtn <mtn@opencascade.com>
Mon, 28 Dec 2009 07:04:31 +0000 (07:04 +0000)
src/Qtx/QtxTable.cxx

index c1fe3590db33bf71d534ce95678606592dfbf8ad..cc42a9e9cc0db87472e9ddb32ec87d40e67c711e 100644 (file)
@@ -1182,10 +1182,10 @@ void QtxTable::setHeaderData( const Qt::Orientation o, const int section, const
     anItem = verticalHeaderItem( section );
 
   if ( anItem )
-    anItem->setData( Qt::DisplayRole, var );
+    anItem->setData( role, var );
   else {
     anItem = new QTableWidgetItem();
-    anItem->setData( Qt::DisplayRole, var );
+    anItem->setData( role, var );
     if ( o == Qt::Horizontal )
       setHorizontalHeaderItem( section, anItem );
     else