@@ -1690,11 +1690,6 @@ bool QgisApp::addLayer(QFileInfo const & vectorFile)
1690
1690
SIGNAL (keyPressed (QKeyEvent *)),
1691
1691
layer,
1692
1692
SLOT (keyPressed (QKeyEvent* )));
1693
- // add hooks for letting layer know canvas needs to recalc the layer extents
1694
- QObject::connect (layer,
1695
- SIGNAL (recalculateExtents ()),
1696
- mMapCanvas ,
1697
- SLOT (recalculateExtents ()));
1698
1693
1699
1694
}
1700
1695
else
@@ -1811,12 +1806,6 @@ bool QgisApp::addLayer(QStringList const &theLayerQStringList, const QString& en
1811
1806
SIGNAL (keyPressed (QKeyEvent *)),
1812
1807
layer,
1813
1808
SLOT (keyPressed (QKeyEvent* )));
1814
- // add hooks for letting layer know canvas needs to recalc the layer extents
1815
- QObject::connect (layer,
1816
- SIGNAL (recalculateExtents ()),
1817
- mMapCanvas ,
1818
- SLOT (recalculateExtents ()));
1819
-
1820
1809
}
1821
1810
else
1822
1811
{
@@ -1924,12 +1913,6 @@ void QgisApp::addDatabaseLayer()
1924
1913
SIGNAL (keyPressed (QKeyEvent *)),
1925
1914
layer,
1926
1915
SLOT (keyPressed (QKeyEvent* )));
1927
- // add hooks for letting layer know canvas needs to recalc the layer extents
1928
- QObject::connect (layer,
1929
- SIGNAL (recalculateExtents ()),
1930
- mMapCanvas ,
1931
- SLOT (recalculateExtents ()));
1932
-
1933
1916
}
1934
1917
else
1935
1918
{
@@ -2589,13 +2572,6 @@ void QgisApp::fileOpen()
2589
2572
SIGNAL (keyPressed (QKeyEvent *)),
2590
2573
myMapLayer,
2591
2574
SLOT (keyPressed (QKeyEvent* )));
2592
-
2593
- // add hooks for letting layer know canvas needs to recalc the layer extents
2594
- QObject::connect (myMapLayer,
2595
- SIGNAL (recalculateExtents ()),
2596
- mMapCanvas ,
2597
- SLOT (recalculateExtents ()));
2598
-
2599
2575
}
2600
2576
2601
2577
// set the projections enabled icon in the status bar
@@ -4222,13 +4198,6 @@ void QgisApp::addVectorLayer(QString vectorLayerPath, QString baseName, QString
4222
4198
layer,
4223
4199
SLOT (keyPressed (QKeyEvent* )));
4224
4200
4225
-
4226
- // add hooks for letting layer know canvas needs to recalc the layer extents
4227
- QObject::connect (layer,
4228
- SIGNAL (recalculateExtents ()),
4229
- mMapCanvas ,
4230
- SLOT (recalculateExtents ()));
4231
-
4232
4201
QgsProject::instance ()->dirty (false ); // XXX this might be redundant
4233
4202
4234
4203
statusBar ()->message (mMapCanvas ->extent ().stringRep (2 ));
@@ -4894,11 +4863,6 @@ bool QgisApp::addRasterLayer(QgsRasterLayer * theRasterLayer, bool theForceRedra
4894
4863
SIGNAL (keyPressed (QKeyEvent * )),
4895
4864
theRasterLayer,
4896
4865
SLOT (keyPressed (QKeyEvent* )));
4897
- // add hooks for letting layer know canvas needs to recalc the layer extents
4898
- QObject::connect (theRasterLayer,
4899
- SIGNAL (recalculateExtents ()),
4900
- mMapCanvas ,
4901
- SLOT (recalculateExtents ()));
4902
4866
4903
4867
// init the context menu so it can connect to slots in main app
4904
4868
// XXX now taken care of in legend theRasterLayer->initContextMenu(this);
@@ -5050,13 +5014,6 @@ void QgisApp::addRasterLayer(QString const & rasterLayerPath,
5050
5014
layer,
5051
5015
SLOT (keyPressed (QKeyEvent* )));
5052
5016
5053
-
5054
- // add hooks for letting layer know canvas needs to recalc the layer extents
5055
- QObject::connect (layer,
5056
- SIGNAL (recalculateExtents ()),
5057
- mMapCanvas ,
5058
- SLOT (recalculateExtents ()));
5059
-
5060
5017
QgsProject::instance ()->dirty (false ); // XXX this might be redundant
5061
5018
5062
5019
statusBar ()->message (mMapCanvas ->extent ().stringRep (2 ));
0 commit comments