Skip to content

Commit 23f0195

Browse files
mbernasocchipka
authored andcommitted
testing newProjectCreated () signal
1 parent 4ed9c53 commit 23f0195

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/plugins/globe/globe_plugin.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ void GlobePlugin::initGui()
107107
//connect( mQGisIface->mapCanvas(), SIGNAL( layersChanged() ),
108108
// this, SLOT( layersChanged() ) );
109109
connect( mQGisIface->mainWindow(), SIGNAL( projectRead() ), this,
110-
SLOT( projectRead() ) );
110+
SLOT( projectReady() ) );
111111
connect( mQGisIface->mainWindow(), SIGNAL( newProjectCreated() ), this,
112-
SLOT( newProject() ) );
112+
SLOT( blankProject() ) );
113113
}
114114

115115
void GlobePlugin::run()
@@ -254,13 +254,16 @@ void GlobePlugin::setupMap()
254254
#endif
255255
}
256256

257-
void GlobePlugin::projectRead()
257+
void GlobePlugin::projectReady()
258258
{
259259
mSettingsDialog.readElevationDatasources();
260260
}
261261

262262
void GlobePlugin::blankProject()
263263
{//TODO
264+
QMessageBox m;
265+
m.setText("new");
266+
m.exec();
264267
mSettingsDialog.elevationDatasources()->clearContents();
265268
mSettingsDialog.elevationDatasources()->setRowCount(0);
266269
}

src/plugins/globe/globe_plugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class GlobePlugin : public QObject, public QgisPlugin
6969
//! Sync globe extent to mapCanavas
7070
void syncExtent();
7171

72-
void projectRead();
72+
void projectReady();
7373
void blankProject();
7474

7575
//! Place an OSG model on the globe

0 commit comments

Comments
 (0)