QTreeWidgetItem *
dmz::JsModuleUiV8QtBasic::_to_qtreewidgetitem (V8Value value) {

   v8::HandleScope scope;
   QTreeWidgetItem *result (0);

   V8Object obj = v8_to_object (value);
   if (!obj.IsEmpty ()) {

      if (_treeWidgetItemTemp->HasInstance (obj)) {

         result = (QTreeWidgetItem *)v8::External::Unwrap (obj->GetInternalField (0));
      }
   }

   return result;
}
QEvent *
dmz::JsModuleUiV8QtBasic::_to_qevent (V8Value value) {

   v8::HandleScope scope;
   QEvent *result (0);

   V8Object obj = v8_to_object (value);
   if (!obj.IsEmpty ()) {

      if (_eventTemp->HasInstance (obj) || _gsceneMouseEventTemp->HasInstance (obj) ||
         _mouseEventTemp->HasInstance (obj) || _resizeEventTemp->HasInstance (obj)) {

         result = (QEvent *)v8::External::Unwrap (obj->GetInternalField (0));
      }
   }

   return result;
}