]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction for table
authornds <nds@opencascade.com>
Mon, 24 Sep 2007 04:31:02 +0000 (04:31 +0000)
committernds <nds@opencascade.com>
Mon, 24 Sep 2007 04:31:02 +0000 (04:31 +0000)
src/Qtx/QtxTable.cxx

index 01fec0d9be0a7d68bc3964c2945bfe35ba7a65ff..ceef59d6d0991b5f88c52063c736b265954816ad 100644 (file)
@@ -1181,7 +1181,9 @@ void QtxTable::setHeaderData( const Qt::Orientation o, const int section, const
   else
     anItem = verticalHeaderItem( section );
   if ( !anItem ) {
+    QVariant aValue = headerData( o, section );
     anItem = new QTableWidgetItem();
+    anItem->setData( Qt::DisplayRole, aValue );
     if ( o == Qt::Horizontal )
       setHorizontalHeaderItem( section, anItem );
     else