Commit 7aa67ed6 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED added required update of the application

Since the toolbar visibility is now manages inside
the viewer, the application needs to be refreshed
when the MedicalImageViewer visible viewers are changed
parent 8d865a07
......@@ -61,5 +61,6 @@ QWidget* Show3DViewer::getWidget() {
// --------------- apply -------------------
Action::ApplyStatus Show3DViewer::apply() {
MedicalImageViewer::getInstance()->setVisibleViewer(MedicalImageViewer::VIEWER_3D);
Application::refresh();
return SUCCESS;
}
......@@ -61,5 +61,6 @@ QWidget* ShowAllViewers::getWidget() {
// --------------- apply -------------------
Action::ApplyStatus ShowAllViewers::apply() {
MedicalImageViewer::getInstance()->setVisibleViewer(MedicalImageViewer::VIEWER_ALL);
Application::refresh();
return SUCCESS;
}
......@@ -61,5 +61,6 @@ QWidget* ShowArbitraryViewer::getWidget() {
// --------------- apply -------------------
Action::ApplyStatus ShowArbitraryViewer::apply() {
MedicalImageViewer::getInstance()->setVisibleViewer(MedicalImageViewer::VIEWER_ARBITRARY);
Application::refresh();
return SUCCESS;
}
......@@ -61,5 +61,6 @@ QWidget* ShowAxialViewer::getWidget() {
// --------------- apply -------------------
Action::ApplyStatus ShowAxialViewer::apply() {
MedicalImageViewer::getInstance()->setVisibleViewer(MedicalImageViewer::VIEWER_AXIAL);
Application::refresh();
return SUCCESS;
}
......@@ -61,5 +61,6 @@ QWidget* ShowCoronalViewer::getWidget() {
// --------------- apply -------------------
Action::ApplyStatus ShowCoronalViewer::apply() {
MedicalImageViewer::getInstance()->setVisibleViewer(MedicalImageViewer::VIEWER_CORONAL);
Application::refresh();
return SUCCESS;
}
......@@ -61,5 +61,6 @@ QWidget* ShowSagittalViewer::getWidget() {
// --------------- apply -------------------
Action::ApplyStatus ShowSagittalViewer::apply() {
MedicalImageViewer::getInstance()->setVisibleViewer(MedicalImageViewer::VIEWER_SAGITTAL);
Application::refresh();
return SUCCESS;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment