From: mzn Date: Fri, 13 Dec 2013 10:47:35 +0000 (+0000) Subject: Disable the first column items in order to skip them when the user navigates with... X-Git-Tag: BR_hydro_v_0_5~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fabd3c447e5b018faa5bd26545c7c16f6e4a83bb;p=modules%2Fhydro.git 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. --- 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