Skip to content
Permalink
Browse files

show loading layer in status bar

  • Loading branch information
jef-n committed Apr 17, 2013
1 parent 51e5894 commit a56c05ad6a793793b26b66699ee591a2bb07f414
Showing with 8 additions and 0 deletions.
  1. +2 −0 src/app/qgisapp.cpp
  2. +4 −0 src/core/qgsproject.cpp
  3. +2 −0 src/core/qgsproject.h
@@ -1836,6 +1836,8 @@ void QgisApp::setupConnections()
this, SLOT( oldProjectVersionWarning( QString ) ) );
connect( QgsProject::instance(), SIGNAL( layerLoaded( int, int ) ),
this, SLOT( showProgress( int, int ) ) );
connect( QgsProject::instance(), SIGNAL( loadingLayer( QString ) ),
this, SLOT( showStatusMessage( QString ) ) );
connect( QgsProject::instance(), SIGNAL( readProject( const QDomDocument & ) ),
this, SLOT( readProject( const QDomDocument & ) ) );
connect( QgsProject::instance(), SIGNAL( writeProject( QDomDocument & ) ),
@@ -685,6 +685,10 @@ QPair< bool, QList<QDomNode> > QgsProject::_getMapLayers( QDomDocument const &do
QDomNode node = nl.item( i );
QDomElement element = node.toElement();

QString name = node.namedItem( "layername" ).toElement().text();
if( !name.isNull() )
emit loadingLayer( tr( "Loading layer %1" ).arg( name ) );

if ( element.attribute( "embedded" ) == "1" )
{
createEmbeddedLayer( element.attribute( "id" ), readPath( element.attribute( "project" ) ), brokenNodes, vLayerList );
@@ -348,6 +348,8 @@ class CORE_EXPORT QgsProject : public QObject
// @param n number of layers
void layerLoaded( int i, int n );

void loadingLayer( QString );

void snapSettingsChanged();

private:

0 comments on commit a56c05a

Please sign in to comment.
You can’t perform that action at this time.