File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
80
80
mObjectPlacer( NULL )
81
81
{
82
82
mIsGlobeRunning = false ;
83
+ // needed to be "seen" by other plugins by doing
84
+ // iface.mainWindow().findChild( QObject, "globePlugin" )
85
+ this ->setObjectName (" globePlugin" );
86
+ this ->setParent (theQgisInterface->mainWindow ());
83
87
}
84
88
85
89
// destructor
@@ -198,10 +202,7 @@ void GlobePlugin::initGui()
198
202
connect ( &mQDockWidget , SIGNAL ( globeClosed () ), this ,
199
203
SLOT ( setGlobeNotRunning () ) );
200
204
connect ( this , SIGNAL ( xyCoordinates ( const QgsPoint & ) ),
201
- mQGisIface ->mainWindow (), SLOT ( showMouseCoordinate ( const QgsPoint & ) ) );
202
- // connect( this, SIGNAL( xyCoordinates( const QgsPoint & ) ),
203
- // this, SLOT( showSelectedCoordinates() ) );
204
-
205
+ mQGisIface ->mapCanvas (), SIGNAL ( xyCoordinates ( const QgsPoint & ) ) );
205
206
}
206
207
207
208
void GlobePlugin::run ()
You can’t perform that action at this time.
0 commit comments