Skip to content

Commit

Permalink
More robust
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 14, 2022
1 parent feaa954 commit a39ed7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/georeferencer/qgsgcplistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ QgsGCPListWidget::QgsGCPListWidget( QWidget *parent )
setAlternatingRowColors( true );

// set delegates for items
setItemDelegateForColumn( 2, mCoordDelegate ); // srcX
setItemDelegateForColumn( 3, mCoordDelegate ); // srcY
setItemDelegateForColumn( 4, mDmsAndDdDelegate ); // dstX
setItemDelegateForColumn( 5, mDmsAndDdDelegate ); // dstY
setItemDelegateForColumn( static_cast< int >( QgsGCPListModel::Column::SourceX ), mCoordDelegate );
setItemDelegateForColumn( static_cast< int >( QgsGCPListModel::Column::SourceY ), mCoordDelegate );
setItemDelegateForColumn( static_cast< int >( QgsGCPListModel::Column::DestinationX ), mDmsAndDdDelegate );
setItemDelegateForColumn( static_cast< int >( QgsGCPListModel::Column::DestinationY ), mDmsAndDdDelegate );

connect( this, &QAbstractItemView::doubleClicked,
this, &QgsGCPListWidget::itemDoubleClicked );
Expand Down

0 comments on commit a39ed7b

Please sign in to comment.