Skip to content
Permalink
Browse files
show identify results in layer display order
git-svn-id: http://svn.osgeo.org/qgis/trunk@13799 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 24, 2010
1 parent d254acb commit a88400375e6d321d29235f88753884838abe2fe9
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/app/qgisapp.cpp
  2. +1 −1 src/app/qgsidentifyresults.cpp
@@ -360,16 +360,16 @@ QgisApp *QgisApp::smInstance = 0;
// constructor starts here
QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent, Qt::WFlags fl )
: QMainWindow( parent, fl )
, mSettingsMenu( NULL )
, mSplash( splash )
, mPythonUtils( NULL )
, mpTileScaleWidget( NULL )
, mSettingsMenu( NULL )
#ifdef HAVE_QWT
, mpGpsWidget( NULL )
#endif
#ifdef Q_OS_WIN
, mSkipNextContextMenuEvent( 0 )
#endif
#ifdef HAVE_QWT
, mpGpsWidget( NULL )
#endif
{
if ( smInstance )
{
@@ -161,7 +161,7 @@ void QgsIdentifyResults::addFeature( QgsMapLayer *layer, int fid,

if ( layItem == 0 )
{
layItem = new QTreeWidgetItem( QStringList() << layer->name() << tr( "Layer" ) );
layItem = new QTreeWidgetItem( QStringList() << QString::number( lstResults->topLevelItemCount() ) << layer->name() );
layItem->setData( 0, Qt::UserRole, QVariant::fromValue( qobject_cast<QObject *>( layer ) ) );
lstResults->addTopLevelItem( layItem );

0 comments on commit a884003

Please sign in to comment.