mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Refactor color table functions to reference the lookup table where appropriate
This commit is contained in:
parent
c1280c05aa
commit
03f08d54f1
11 changed files with 30 additions and 29 deletions
|
|
@ -182,8 +182,6 @@ public:
|
|||
manager::PlacefileManager::Instance()};
|
||||
std::shared_ptr<manager::RadarProductManager> radarProductManager_;
|
||||
|
||||
std::shared_ptr<common::ColorTable> colorTable_;
|
||||
|
||||
std::shared_ptr<RadarProductLayer> radarProductLayer_;
|
||||
std::shared_ptr<AlertLayer> alertLayer_;
|
||||
std::shared_ptr<OverlayLayer> overlayLayer_;
|
||||
|
|
@ -1377,7 +1375,7 @@ void MapWidgetImpl::RadarProductViewConnect()
|
|||
{
|
||||
connect(
|
||||
radarProductView.get(),
|
||||
&view::RadarProductView::ColorTableUpdated,
|
||||
&view::RadarProductView::ColorTableLutUpdated,
|
||||
this,
|
||||
[this]() { widget_->update(); },
|
||||
Qt::QueuedConnection);
|
||||
|
|
@ -1412,7 +1410,7 @@ void MapWidgetImpl::RadarProductViewDisconnect()
|
|||
if (radarProductView != nullptr)
|
||||
{
|
||||
disconnect(radarProductView.get(),
|
||||
&view::RadarProductView::ColorTableUpdated,
|
||||
&view::RadarProductView::ColorTableLutUpdated,
|
||||
this,
|
||||
nullptr);
|
||||
disconnect(radarProductView.get(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue