Skip to content
Permalink
Browse files

Revert "Avoid more accidentally editable table cells"

This reverts commit c6ee6e3.
  • Loading branch information
nyalldawson committed Mar 22, 2019
1 parent 236cb08 commit ee7a7e707c0ad9e96f5def495562cc743b16e842
Showing with 3 additions and 7 deletions.
  1. +3 −7 src/gui/qgsdatumtransformdialog.cpp
@@ -140,19 +140,15 @@ void QgsDatumTransformDialog::load( QPair<int, int> selectedDatumTransforms )
{
std::unique_ptr< QTableWidgetItem > item = qgis::make_unique< QTableWidgetItem >();
int nr = i == 0 ? transform.sourceTransformId : transform.destinationTransformId;
item->setData( Qt::UserRole, nr );
item->setFlags( item->flags() & ~Qt::ItemIsEditable );

item->setText( QgsDatumTransform::datumTransformToProj( nr ) );

//Describe datums in a tooltip
QgsDatumTransform::TransformInfo info = i == 0 ? srcInfo : destInfo;
if ( info.datumTransformId == -1 )
{
mDatumTransformTableWidget->setRowCount( row + 1 );
mDatumTransformTableWidget->setItem( row, i, item.release() );
continue;
}

item->setData( Qt::UserRole, nr );
item->setText( QgsDatumTransform::datumTransformToProj( nr ) );

if ( info.deprecated )
{

0 comments on commit ee7a7e7

Please sign in to comment.
You can’t perform that action at this time.