if ((context->argumentCount() == 1) && (qMetaTypeId<QTextFormat>() == context->argument(0).toVariant().userType())) { QTextFormat _q_arg0 = qscriptvalue_cast<QTextFormat>(context->argument(0)); QTextFormat _q_cpp_result(_q_arg0); QScriptValue _q_result = context->engine()->newVariant(context->thisObject(), qVariantFromValue(_q_cpp_result)); return _q_result; } return new QTreeWidgetItemIterator(*copy); delete copy; return new QInputMethodEvent::Attribute(copy->type, copy->start, copy->length, copy->value); delete copy; return new QConicalGradient(copy->center(), copy->angle()); delete copy; return new QFontInfo(*copy); delete copy; QFontInfo & %out% = *qscriptvalue_cast<QFontInfo*>(%in%); return new QRadialGradient(copy->center(), copy->radius(), copy->focalPoint()); delete copy; QImage* new_QImage( const uchar * data, int width, int height, QImage::Format format ) { QImage* image = new QImage(width, height, format); memcpy(image->bits(), data, image->byteCount()); return image; } return new QColormap(*copy); delete copy; QGradient & %out% = *qscriptvalue_cast<QGradient*>(%in%); return new QFontMetricsF(*copy); delete copy; return new QFontMetrics(*copy); delete copy; Q_UNUSED(copy) qWarning("Copying empty QGradient object"); return new QGradient(); delete copy; QLinearGradient *lg = new QLinearGradient(copy->start(), copy->finalStop()); lg->setSpread(copy->spread()); lg->setStops(copy->stops()); return (void *) lg; delete copy; if (%1 != null) disableGarbageCollection(); QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers) { return QModelIndex(); } Q_DECLARE_METATYPE(QScriptValue) QDataStream & %out% = *qscriptvalue_cast<QDataStream*>(%in%); jobject %out = qtjambi_from_object(__jni_env, %in, "QImage", "com/trolltech/qt/gui/", false); QtJambiLink *__link = %out != 0 ? QtJambiLink::findLink(__jni_env, %out) : 0; QDataStream & %out% = *qscriptvalue_cast<QDataStream*>(%in%); QAction* addAction (QMenu* menu, const QString & text, PyObject* callable, const QKeySequence & shortcut = 0) { QAction* a = menu->addAction(text); a->setShortcut(shortcut); PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); return a; } QAction* addAction (QMenu* menu, const QIcon& icon, const QString& text, PyObject* callable, const QKeySequence& shortcut = 0) { QAction* a = menu->addAction(text); a->setIcon(icon); a->setShortcut(shortcut); PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); return a; } QAction* addAction (QMenuBar* menu, const QString & text, PyObject* callable) { QAction* a = menu->addAction(text); PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); return a; } Q_DECLARE_METATYPE(QScriptValue) QScriptValue %out%_orig = %in%; QWidget* %out% = qscriptvalue_cast<QWidget*>(%out%_orig); if (%out% != 0) context->engine()->newQObject(%out%_orig, %out%, QScriptEngine::QtOwnership); if (%1 != null) disableGarbageCollection(); if (%2 != null) disableGarbageCollection(); QAction* addAction (QToolBar* menu, const QString & text, PyObject* callable) { QAction* a = menu->addAction(text); PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); return a; } QAction* addAction (QToolBar* menu, const QIcon& icon, const QString& text, PyObject* callable) { QAction* a = menu->addAction(text); a->setIcon(icon); PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); return a; } >