| 48 | ScopyJS::~ScopyJS() {} |
| 49 | |
| 50 | ScopyJS *ScopyJS::GetInstance() |
| 51 | { |
| 52 | if(pinstance_ == nullptr) { |
| 53 | pinstance_ = new ScopyJS(QApplication::instance()); // singleton has the app as parent |
| 54 | pinstance_->init(); |
| 55 | } |
| 56 | return pinstance_; |
| 57 | } |
| 58 | |
| 59 | void ScopyJS::exit() { QApplication::closeAllWindows(); } |
| 60 |