mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
getDatabasePager clear when changing 3D settings
This commit is contained in:
parent
9da6afca15
commit
0cbd8a3e69
@ -70,7 +70,7 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
|
||||
mQActionSettingsPointer( NULL ),
|
||||
viewer(),
|
||||
mQDockWidget( tr( "Globe" ) ),
|
||||
mSettingsDialog( theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
|
||||
mSettingsDialog( &viewer, theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
|
||||
mTileSource( 0 ),
|
||||
mQgisMapLayer( 0 ),
|
||||
mElevationManager( NULL ),
|
||||
|
@ -39,8 +39,8 @@
|
||||
#include <osg/DisplaySettings>
|
||||
|
||||
//constructor
|
||||
QgsGlobePluginDialog::QgsGlobePluginDialog( QWidget* parent, Qt::WFlags fl )
|
||||
: QDialog( parent, fl )
|
||||
QgsGlobePluginDialog::QgsGlobePluginDialog( QgsOsgViewer* viewer, QWidget* parent, Qt::WFlags fl )
|
||||
: mViewer(viewer), QDialog( parent, fl )
|
||||
{
|
||||
setupUi( this );
|
||||
loadStereoConfig(); //values from settings, default values from OSG
|
||||
@ -437,6 +437,7 @@ void QgsGlobePluginDialog::setStereoMode()
|
||||
|
||||
void QgsGlobePluginDialog::setStereoConfig()
|
||||
{
|
||||
mViewer->getDatabasePager()->clear();
|
||||
//SETTING THE VALUES IN THE OEGearth instance
|
||||
setStereoMode();
|
||||
osg::DisplaySettings::instance()->setScreenDistance( screenDistance->value() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user