show identify results in layer display order

git-svn-id: http://svn.osgeo.org/qgis/trunk@13799 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-06-24 19:54:33 +00:00
parent d254acb49e
commit a88400375e
2 changed files with 5 additions and 5 deletions

View File

@ -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 )
{

View File

@ -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 );