mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Moving isActive from radar product view to map settings
This commit is contained in:
		
							parent
							
								
									f7f86ec24a
								
							
						
					
					
						commit
						b78011a2d3
					
				
					 7 changed files with 35 additions and 30 deletions
				
			
		|  | @ -58,7 +58,6 @@ public: | |||
|        radarProductLayer_ {nullptr}, | ||||
|        overlayLayer_ {nullptr}, | ||||
|        colorTableLayer_ {nullptr}, | ||||
|        isActive_ {false}, | ||||
|        lastPos_(), | ||||
|        currentStyleIndex_ {0}, | ||||
|        frameDraws_(0), | ||||
|  | @ -87,7 +86,6 @@ public: | |||
|    std::shared_ptr<OverlayLayer>      overlayLayer_; | ||||
|    std::shared_ptr<ColorTableLayer>   colorTableLayer_; | ||||
| 
 | ||||
|    bool    isActive_; | ||||
|    QPointF lastPos_; | ||||
|    uint8_t currentStyleIndex_; | ||||
| 
 | ||||
|  | @ -145,7 +143,6 @@ void MapWidget::SelectRadarProduct(common::Level2Product product) | |||
| 
 | ||||
|    radarProductView = view::RadarProductViewFactory::Create( | ||||
|       product, currentElevation, p->radarProductManager_); | ||||
|    radarProductView->SetActive(p->isActive_); | ||||
| 
 | ||||
|    connect( | ||||
|       radarProductView.get(), | ||||
|  | @ -184,13 +181,8 @@ void MapWidget::SelectRadarProduct(common::Level2Product product) | |||
| 
 | ||||
| void MapWidget::SetActive(bool isActive) | ||||
| { | ||||
|    p->isActive_ = isActive; | ||||
| 
 | ||||
|    if (p->context_->radarProductView_ != nullptr) | ||||
|    { | ||||
|       p->context_->radarProductView_->SetActive(isActive); | ||||
|       update(); | ||||
|    } | ||||
|    p->context_->settings_.isActive_ = isActive; | ||||
|    update(); | ||||
| } | ||||
| 
 | ||||
| void MapWidget::SetMapParameters( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat