Skip to content
Permalink
Browse files

getDatabasePager clear when changing 3D settings

  • Loading branch information
pka committed Dec 9, 2010
1 parent 9da6afc commit 0cbd8a3e69d16e4074f121dfa32aeb94f7b67c43
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/plugins/globe/globe_plugin.cpp
  2. +3 −2 src/plugins/globe/globe_plugin_dialog.cpp
@@ -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() );

0 comments on commit 0cbd8a3

Please sign in to comment.
You can’t perform that action at this time.