comparison Applications/Generic/BasicNativeApplicationContext.cpp @ 277:a38465cc909f am-2

Qt: refresh ok + mouse interaction ok
author am@osimis.io
date Mon, 27 Aug 2018 14:41:49 +0200
parents dc1beee33134
children
comparison
equal deleted inserted replaced
276:5de5699ad570 277:a38465cc909f
38 { 38 {
39 GlobalMutexLocker locker(*that); 39 GlobalMutexLocker locker(*that);
40 that->GetCentralViewport().UpdateContent(); 40 that->GetCentralViewport().UpdateContent();
41 } 41 }
42 42
43 boost::this_thread::sleep(boost::posix_time::milliseconds(that->updateDelay_)); 43 boost::this_thread::sleep(boost::posix_time::milliseconds(that->updateDelayInMs_));
44 } 44 }
45 } 45 }
46 46
47 47
48 BasicNativeApplicationContext::BasicNativeApplicationContext() : // Orthanc::WebServiceParameters& orthanc, WidgetViewport* centralViewport) : 48 BasicNativeApplicationContext::BasicNativeApplicationContext() :
49 centralViewport_(new OrthancStone::WidgetViewport()), 49 centralViewport_(new OrthancStone::WidgetViewport()),
50 stopped_(true), 50 stopped_(true),
51 updateDelay_(100) // By default, 100ms between each refresh of the content 51 updateDelayInMs_(100) // By default, 100ms between each refresh of the content
52 { 52 {
53 srand(time(NULL)); 53 srand(time(NULL));
54 } 54 }
55 55
56 56