mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
d254acb49e
commit
a88400375e
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user