void QgsProjectionSelector::showEvent( QShowEvent * theEvent ) { // ensure the projection list view is actually populated // before we show this widget if ( !mProjListDone ) { loadCrsList( &mCrsFilter ); } if ( !mUserProjListDone ) { loadUserCrsList( &mCrsFilter ); } // check if a paricular projection is waiting // to be pre-selected, and if so, to select it now. if ( mCRSNameSelectionPending ) { applyCRSNameSelection(); } if ( mCRSIDSelectionPending ) { applyCRSIDSelection(); } // Pass up the inheritance heirarchy QWidget::showEvent( theEvent ); }
void QgsProjectionSelector::showEvent( QShowEvent * theEvent ) { // ensure the projection list view is actually populated // before we show this widget loadCrsList( &mCrsFilter ); loadUserCrsList( &mCrsFilter ); if ( !mRecentProjListDone ) { for ( int i = mRecentProjections.size() - 1; i >= 0; i-- ) insertRecent( mRecentProjections.at( i ).toLong() ); mRecentProjListDone = true; } // apply deferred selection applySelection(); emit initialized(); // Pass up the inheritance hierarchy QWidget::showEvent( theEvent ); }