Fix view double click don't zoom out bug.
This commit is contained in:
@@ -845,3 +845,7 @@ void DicomImageView::SetSliceOrientation(int orientation) {
|
||||
int DicomImageView::GetSliceOrientation() {
|
||||
return slice_orientation;
|
||||
}
|
||||
|
||||
void DicomImageView::viewerClicked() {
|
||||
emit Signal_ViewClicked(this);
|
||||
}
|
||||
|
||||
@@ -175,11 +175,11 @@ void ViewContainerWidget::Slot_ViewDoubleClicked(DicomImageView *view) {
|
||||
return;
|
||||
}
|
||||
if (maxed_) {
|
||||
manager.smartDo([](auto v,auto callData){v->setVisible(true);});
|
||||
manager.smartDo([](auto v,auto callData){v->setVisible(true);}, nullptr,nullptr, ImageViewManager::All);
|
||||
maxed_ = false;
|
||||
}
|
||||
else {
|
||||
manager.smartDo([](auto v,auto callData){v->setVisible(false);});
|
||||
manager.smartDo([](auto v,auto callData){v->setVisible(false);},nullptr,nullptr, ImageViewManager::AllExceptSelf);
|
||||
view->setVisible(true);
|
||||
maxed_ = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user