diff Applications/Samples/SingleFrameEditorApplication.h @ 330:7a364e44fbb4 am-2

renamed SetDefaultView in FitContent
author am@osimis.io
date Wed, 17 Oct 2018 12:45:52 +0200
parents b10dfdb96866
children c34784e5f299
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameEditorApplication.h	Wed Oct 17 12:30:32 2018 +0200
+++ b/Applications/Samples/SingleFrameEditorApplication.h	Wed Oct 17 12:45:52 2018 +0200
@@ -119,7 +119,7 @@
           switch (keyChar)
           {
           case 's':
-            widget.SetDefaultView();
+            widget.FitContent();
             break;
           case 'p':
             application_.currentTool_ = Tools_Pan;
@@ -154,7 +154,7 @@
       void OnGeometryChanged(const LayerWidget::GeometryChangedMessage& message)
       {
         mainWidget_->SetSlice(source_->GetSlice(slice_).GetGeometry());
-        mainWidget_->SetDefaultView();
+        mainWidget_->FitContent();
       }
       
       std::unique_ptr<Interactor>           mainWidgetInteractor_;