Mercurial > hg > orthanc-stone
diff Applications/Samples/SimpleViewerApplication.h @ 317:b66d13708f40 am-2
cleanup
author | am@osimis.io |
---|---|
date | Fri, 05 Oct 2018 11:57:36 +0200 |
parents | be2660b6e40a |
children | 3a4ca166fafa |
line wrap: on
line diff
--- a/Applications/Samples/SimpleViewerApplication.h Fri Oct 05 10:38:16 2018 +0200 +++ b/Applications/Samples/SimpleViewerApplication.h Fri Oct 05 11:57:36 2018 +0200 @@ -279,8 +279,10 @@ mainLayout_->AddWidget(thumbnailsLayout_); mainLayout_->AddWidget(mainWidget_); + orthancApiClient_.reset(new OrthancApiClient(IObserver::broker_, context_->GetWebService())); + // sources - smartLoader_.reset(new SmartLoader(IObserver::broker_, context_->GetWebService())); + smartLoader_.reset(new SmartLoader(IObserver::broker_, *orthancApiClient_)); smartLoader_->SetImageQuality(SliceImageQuality_FullPam); mainLayout_->SetTransmitMouseOver(true); @@ -292,7 +294,6 @@ statusBar.SetMessage("Use the key \"s\" to reinitialize the layout"); statusBar.SetMessage("Use the key \"n\" to go to next image in the main viewport"); - orthancApiClient_.reset(new OrthancApiClient(IObserver::broker_, context_->GetWebService())); if (parameters.count("studyId") < 1) {