Mercurial > hg > orthanc-stone
view Applications/Wasm/BasicWasmApplicationContext.cpp @ 228:210c1ce8e1a6 am
WasmViewport is no more a singleton
author | am@osimis.io |
---|---|
date | Thu, 14 Jun 2018 15:06:29 +0200 |
parents | 84844649a8fd |
children | 5027cb2feb51 |
line wrap: on
line source
#include "BasicWasmApplicationContext.h" namespace OrthancStone { IWidget& BasicWasmApplicationContext::SetCentralWidget(IWidget* widget) // Takes ownership { printf("BasicWasmApplicationContext::SetCentralWidget %x %x\n", centralViewport_.get(), widget); assert(centralViewport_.get() != NULL); centralViewport_->SetCentralWidget(widget); printf("BasicWasmApplicationContext::SetCentralWidget done\n"); return *widget; } }