Skip to content

Commit

Permalink
show identify results in layer display order
Browse files Browse the repository at this point in the history
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 a884003
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresults.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit a884003

Please sign in to comment.