From 7fdbbce3a6d786c473beb146ee7b191d63a7cd28 Mon Sep 17 00:00:00 2001 From: mtn Date: Mon, 28 Dec 2009 07:04:31 +0000 Subject: [PATCH] Bug fixing --- src/Qtx/QtxTable.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Qtx/QtxTable.cxx b/src/Qtx/QtxTable.cxx index c1fe3590d..cc42a9e9c 100644 --- a/src/Qtx/QtxTable.cxx +++ b/src/Qtx/QtxTable.cxx @@ -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 -- 2.39.2