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/qgis@13799 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 24, 2010
1 parent 76424df commit b896b38
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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -360,16 +360,16 @@ QgisApp *QgisApp::smInstance = 0;
// constructor starts here // constructor starts here
QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent, Qt::WFlags fl ) QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent, Qt::WFlags fl )
: QMainWindow( parent, fl ) : QMainWindow( parent, fl )
, mSettingsMenu( NULL )
, mSplash( splash ) , mSplash( splash )
, mPythonUtils( NULL ) , mPythonUtils( NULL )
, mpTileScaleWidget( NULL ) , mpTileScaleWidget( NULL )
, mSettingsMenu( NULL )
#ifdef HAVE_QWT
, mpGpsWidget( NULL )
#endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
, mSkipNextContextMenuEvent( 0 ) , mSkipNextContextMenuEvent( 0 )
#endif #endif
#ifdef HAVE_QWT
, mpGpsWidget( NULL )
#endif
{ {
if ( smInstance ) if ( smInstance )
{ {
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresults.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void QgsIdentifyResults::addFeature( QgsMapLayer *layer, int fid,


if ( layItem == 0 ) 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 ) ) ); layItem->setData( 0, Qt::UserRole, QVariant::fromValue( qobject_cast<QObject *>( layer ) ) );
lstResults->addTopLevelItem( layItem ); lstResults->addTopLevelItem( layItem );


Expand Down

0 comments on commit b896b38

Please sign in to comment.