mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:20:06 +00:00 
			
		
		
		
	Emit signals when a sweep is not updated (with reason)
This commit is contained in:
		
							parent
							
								
									745eba34f2
								
							
						
					
					
						commit
						6b179fe35c
					
				
					 7 changed files with 44 additions and 1 deletions
				
			
		|  | @ -1010,6 +1010,10 @@ void MapWidgetImpl::RadarProductViewConnect() | |||
|             Q_EMIT widget_->RadarSweepUpdated(); | ||||
|          }, | ||||
|          Qt::QueuedConnection); | ||||
|       connect(radarProductView.get(), | ||||
|               &view::RadarProductView::SweepNotComputed, | ||||
|               widget_, | ||||
|               &MapWidget::RadarSweepNotUpdated); | ||||
|    } | ||||
| } | ||||
| 
 | ||||
|  | @ -1027,6 +1031,10 @@ void MapWidgetImpl::RadarProductViewDisconnect() | |||
|                  &view::RadarProductView::SweepComputed, | ||||
|                  this, | ||||
|                  nullptr); | ||||
|       disconnect(radarProductView.get(), | ||||
|                  &view::RadarProductView::SweepNotComputed, | ||||
|                  widget_, | ||||
|                  nullptr); | ||||
|    } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
| 
 | ||||
| #include <scwx/common/products.hpp> | ||||
| #include <scwx/qt/config/radar_site.hpp> | ||||
| #include <scwx/qt/types/map_types.hpp> | ||||
| #include <scwx/qt/types/radar_product_record.hpp> | ||||
| 
 | ||||
| #include <chrono> | ||||
|  | @ -143,6 +144,7 @@ signals: | |||
|    void MapStyleChanged(const std::string& styleName); | ||||
|    void RadarSiteUpdated(std::shared_ptr<config::RadarSite> radarSite); | ||||
|    void RadarSweepUpdated(); | ||||
|    void RadarSweepNotUpdated(types::NoUpdateReason reason); | ||||
| }; | ||||
| 
 | ||||
| } // namespace map
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat