@@ -1872,15 +1872,6 @@ bool QgisApp::addLayer(QFileInfo const & vectorFile)
1872
1872
// Register this layer with the layers registry
1873
1873
QgsMapLayerRegistry::instance ()->addMapLayer (layer);
1874
1874
1875
- // connect up any keypresses to be passed tot he layer (e.g. so esc can stop rendering)
1876
- #ifdef QGISDEBUG
1877
- std::cout << " Connecting up maplayers keyPressed event to the QgisApp keyPress signal" << std::endl;
1878
- #endif
1879
- QObject::connect (this ,
1880
- SIGNAL (keyPressed (QKeyEvent *)),
1881
- layer,
1882
- SLOT (keyPressed (QKeyEvent* )));
1883
-
1884
1875
}
1885
1876
else
1886
1877
{
@@ -1963,14 +1954,6 @@ bool QgisApp::addLayer(QStringList const &theLayerQStringList, const QString& en
1963
1954
// Register this layer with the layers registry
1964
1955
QgsMapLayerRegistry::instance ()->addMapLayer (layer);
1965
1956
1966
- // connect up any keypresses to be passed tot he layer (e.g. so esc can stop rendering)
1967
- #ifdef QGISDEBUG
1968
- std::cout << " Connecting up maplayers keyPressed event to the QgisApp keyPress signal" << std::endl;
1969
- #endif
1970
- QObject::connect (this ,
1971
- SIGNAL (keyPressed (QKeyEvent *)),
1972
- layer,
1973
- SLOT (keyPressed (QKeyEvent* )));
1974
1957
}
1975
1958
else
1976
1959
{
@@ -2062,14 +2045,6 @@ void QgisApp::addDatabaseLayer()
2062
2045
// register this layer with the central layers registry
2063
2046
QgsMapLayerRegistry::instance ()->addMapLayer (layer);
2064
2047
2065
- // connect up any keypresses to be passed tot he layer (e.g. so esc can stop rendering)
2066
- #ifdef QGISDEBUG
2067
- std::cout << " Connecting up maplayers keyPressed event to the QgisApp keyPress signal" << std::endl;
2068
- #endif
2069
- QObject::connect (this ,
2070
- SIGNAL (keyPressed (QKeyEvent *)),
2071
- layer,
2072
- SLOT (keyPressed (QKeyEvent* )));
2073
2048
}
2074
2049
else
2075
2050
{
@@ -4275,15 +4250,6 @@ void QgisApp::addVectorLayer(QString vectorLayerPath, QString baseName, QString
4275
4250
// Register this layer with the layers registry
4276
4251
QgsMapLayerRegistry::instance ()->addMapLayer (layer);
4277
4252
4278
- // connect up any keypresses to be passed tot he layer (e.g. so esc can stop rendering)
4279
- #ifdef QGISDEBUG
4280
- std::cout << " Connecting up maplayers keyPressed event to the QgisApp keyPress signal" << std::endl;
4281
- #endif
4282
- QObject::connect (this ,
4283
- SIGNAL (keyPressed (QKeyEvent * )),
4284
- layer,
4285
- SLOT (keyPressed (QKeyEvent* )));
4286
-
4287
4253
QgsProject::instance ()->dirty (false ); // XXX this might be redundant
4288
4254
4289
4255
statusBar ()->message (mMapCanvas ->extent ().stringRep (2 ));
@@ -4947,14 +4913,6 @@ bool QgisApp::addRasterLayer(QgsRasterLayer * theRasterLayer, bool theForceRedra
4947
4913
SIGNAL (setStatus (QString)),
4948
4914
this ,
4949
4915
SLOT (showStatusMessage (QString)));
4950
- // connect up any keypresses to be passed tot he layer (e.g. so esc can stop rendering)
4951
- #ifdef QGISDEBUG
4952
- std::cout << " Connecting up maplayers keyPressed event to the QgisApp keyPress signal" << std::endl;
4953
- #endif
4954
- QObject::connect (this ,
4955
- SIGNAL (keyPressed (QKeyEvent * )),
4956
- theRasterLayer,
4957
- SLOT (keyPressed (QKeyEvent* )));
4958
4916
4959
4917
// add it to the mapcanvas collection
4960
4918
// no longer necessary since adding to registry automatically adds to canvas
@@ -5099,15 +5057,6 @@ void QgisApp::addRasterLayer(QString const & rasterLayerPath,
5099
5057
this ,
5100
5058
SLOT (showStatusMessage (QString)));
5101
5059
5102
- // connect up any keypresses to be passed tot he layer (e.g. so esc can stop rendering)
5103
- #ifdef QGISDEBUG
5104
- std::cout << " Connecting up maplayers keyPressed event to the QgisApp keyPress signal" << std::endl;
5105
- #endif
5106
- QObject::connect (this ,
5107
- SIGNAL (keyPressed (QKeyEvent * )),
5108
- layer,
5109
- SLOT (keyPressed (QKeyEvent* )));
5110
-
5111
5060
QgsProject::instance ()->dirty (false ); // XXX this might be redundant
5112
5061
5113
5062
statusBar ()->message (mMapCanvas ->extent ().stringRep (2 ));
0 commit comments