Mercurial > hg > orthanc-stone
comparison Applications/Samples/TestPatternApplication.h @ 53:c2dc924f1a63 wasm
removing threading out of the framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Apr 2017 16:57:49 +0200 |
parents | b340879da9bd |
children | e2fe9352f240 |
comparison
equal
deleted
inserted
replaced
52:37e504582af6 | 53:c2dc924f1a63 |
---|---|
52 | 52 |
53 std::auto_ptr<LayoutWidget> layout(new LayoutWidget); | 53 std::auto_ptr<LayoutWidget> layout(new LayoutWidget); |
54 layout->SetPadding(10); | 54 layout->SetPadding(10); |
55 layout->SetBackgroundCleared(true); | 55 layout->SetBackgroundCleared(true); |
56 layout->AddWidget(new TestCairoWidget(parameters["animate"].as<bool>())); | 56 layout->AddWidget(new TestCairoWidget(parameters["animate"].as<bool>())); |
57 layout->AddWidget(new TestWorldSceneWidget); | 57 layout->AddWidget(new TestWorldSceneWidget(parameters["animate"].as<bool>())); |
58 | 58 |
59 context.SetCentralWidget(layout.release()); | 59 context.SetCentralWidget(layout.release()); |
60 context.SetUpdateDelay(25); // If animation, update the content each 25ms | |
60 } | 61 } |
61 }; | 62 }; |
62 } | 63 } |
63 } | 64 } |