@@ -87,7 +87,9 @@ GammaXsGui::GammaXsGui( MaterialDB *materialDB,
8787 const bool showToolTips = InterSpecUser::preferenceValue<bool >( " ShowTooltips" , m_specViewer );
8888
8989 m_energyEdit = new WLineEdit ( " 100" );
90+
9091 m_energyEdit->setAutoComplete ( false );
92+ m_energyEdit->setAttributeValue ( " ondragstart" , " return false" );
9193#if ( BUILD_AS_OSX_APP || IOS )
9294 m_energyEdit->setAttributeValue ( " autocorrect" , " off" );
9395 m_energyEdit->setAttributeValue ( " spellcheck" , " off" );
@@ -120,7 +122,9 @@ GammaXsGui::GammaXsGui( MaterialDB *materialDB,
120122 HelpSystem::attachToolTipOn ( label, tooltip, showToolTips );
121123 m_layout->addWidget ( label, row, 0 , 1 , 1 , AlignLeft );
122124 m_materialEdit = new WLineEdit ( " C0.5H0.2Ni0.3" );
125+
123126 m_materialEdit->setAutoComplete ( false );
127+ m_materialEdit->setAttributeValue ( " ondragstart" , " return false" );
124128#if ( BUILD_AS_OSX_APP || IOS )
125129 m_materialEdit->setAttributeValue ( " autocorrect" , " off" );
126130 m_materialEdit->setAttributeValue ( " spellcheck" , " off" );
@@ -215,7 +219,9 @@ GammaXsGui::GammaXsGui( MaterialDB *materialDB,
215219 label = new WLabel ( " Density:" );
216220 m_layout->addWidget ( label, row, 0 , 1 , 1 , AlignLeft );
217221 m_density = new WLineEdit ();
222+
218223 m_density->setAutoComplete ( false );
224+ m_density->setAttributeValue ( " ondragstart" , " return false" );
219225#if ( BUILD_AS_OSX_APP || IOS )
220226 m_density->setAttributeValue ( " autocorrect" , " off" );
221227 m_density->setAttributeValue ( " spellcheck" , " off" );
@@ -242,7 +248,9 @@ GammaXsGui::GammaXsGui( MaterialDB *materialDB,
242248 label = new WLabel ( " Thickness:" );
243249 m_layout->addWidget ( label, row, 0 , 1 , 1 , AlignLeft );
244250 m_distance = new WLineEdit ( " 1 cm" );
251+
245252 m_distance->setAutoComplete ( false );
253+ m_distance->setAttributeValue ( " ondragstart" , " return false" );
246254#if ( BUILD_AS_OSX_APP || IOS )
247255 m_distance->setAttributeValue ( " autocorrect" , " off" );
248256 m_distance->setAttributeValue ( " spellcheck" , " off" );
@@ -287,7 +295,9 @@ GammaXsGui::GammaXsGui( MaterialDB *materialDB,
287295 m_detectorLabel[detectorCount] = new WLabel ( " Distance" );
288296 m_layout->addWidget ( m_detectorLabel[detectorCount] , row, 0 , 1 , 1 , AlignLeft );
289297 m_detectorDistance = new WLineEdit (" 2 cm" );
298+
290299 m_detectorDistance->setAutoComplete ( false );
300+ m_detectorDistance->setAttributeValue ( " ondragstart" , " return false" );
291301#if ( BUILD_AS_OSX_APP || IOS )
292302 m_detectorDistance->setAttributeValue ( " autocorrect" , " off" );
293303 m_detectorDistance->setAttributeValue ( " spellcheck" , " off" );
0 commit comments