From fabd3c447e5b018faa5bd26545c7c16f6e4a83bb Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 13 Dec 2013 10:47:35 +0000 Subject: [PATCH] Disable the first column items in order to skip them when the user navigates with TAB button. Get rid of the bold font as it brakes the common style of tables in the application. --- src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx index aa73cd03..35be05cd 100644 --- a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx @@ -240,10 +240,12 @@ void HYDROGUI_GeoreferencementDlg::setData( const ProfilesGeoDataList& theData ) // "Profile" column QTableWidgetItem* aNameItem = new QTableWidgetItem( aGeoData.Name ); - aNameItem->setFlags( Qt::ItemIsEnabled ); + aNameItem->setFlags( aNameItem->flags() & ~Qt::ItemIsEnabled ); + /* Bold font is not used in other tables. Keep the common style. QFont aFont = aNameItem->font(); aFont.setBold( true ); - aNameItem->setFont( aFont ); + aNameItem->setFont( aFont ); + */ myTable->setItem( aRow, 0, aNameItem ); // "Xg" column -- 2.39.2