Skip to content
Permalink
Browse files

Add resizable splitters to projection selection widget so that users

can resize the different lists to better sizes for their workflows
  • Loading branch information
nyalldawson committed Sep 23, 2020
1 parent 1c3347a commit 9c40f6b766580ac7fead8b5adfa58eb816393fce
Showing with 165 additions and 157 deletions.
  1. +6 −0 src/gui/qgsprojectionselectiontreewidget.cpp
  2. +159 −157 src/ui/qgsprojectionselectorbase.ui
@@ -87,6 +87,9 @@ QgsProjectionSelectionTreeWidget::QgsProjectionSelectionTreeWidget( QWidget *par
mFrameProjections->setDisabled( checked );
}
} );

QgsSettings settings;
mSplitter->restoreState( settings.value( QStringLiteral( "Windows/ProjectionSelector/splitterState" ) ).toByteArray() );
}

QgsProjectionSelectionTreeWidget::~QgsProjectionSelectionTreeWidget()
@@ -101,6 +104,9 @@ QgsProjectionSelectionTreeWidget::~QgsProjectionSelectionTreeWidget()
if ( crsId == 0 )
return;

QgsSettings settings;
settings.setValue( QStringLiteral( "Windows/ProjectionSelector/splitterState" ), mSplitter->saveState() );

QgsCoordinateReferenceSystem::pushRecentCoordinateReferenceSystem( crs() );
}

0 comments on commit 9c40f6b

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