Mercurial > hg > orthanc-stone
comparison Applications/Qt/QtStoneApplicationRunner.cpp @ 319:daa04d15192c am-2
new SimpleViewer sample that has been split in multiple files to be able to scale it
author | am@osimis.io |
---|---|
date | Thu, 11 Oct 2018 13:16:54 +0200 |
parents | df5011cf903c |
children | b70e9be013e4 |
comparison
equal
deleted
inserted
replaced
318:3a4ca166fafa | 319:daa04d15192c |
---|---|
48 | 48 |
49 void QtStoneApplicationRunner::Run(NativeStoneApplicationContext& context, const std::string& title, int argc, char* argv[]) | 49 void QtStoneApplicationRunner::Run(NativeStoneApplicationContext& context, const std::string& title, int argc, char* argv[]) |
50 { | 50 { |
51 context.Start(); | 51 context.Start(); |
52 | 52 |
53 QApplication app(argc, argv); | 53 QApplication qtApplication(argc, argv); |
54 InitializeMainWindow(context); | 54 window_.reset(application_.CreateQtMainWindow()); |
55 | 55 |
56 window_->show(); | 56 window_->show(); |
57 app.exec(); | 57 qtApplication.exec(); |
58 | 58 |
59 context.Stop(); | 59 context.Stop(); |
60 } | 60 } |
61 | 61 |
62 void QtStoneApplicationRunner::Finalize() | 62 void QtStoneApplicationRunner::Finalize() |