本文整理汇总了C++中QScriptValueList函数的典型用法代码示例。如果您正苦于以下问题:C++ QScriptValueList函数的具体用法?C++ QScriptValueList怎么用?C++ QScriptValueList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了QScriptValueList函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QScriptValueList
QString QtScriptShell_QTranslator::translate(const char* context, const char* sourceText, const char* disambiguation) const
{
QScriptValue _q_function = __qtscript_self.property("translate");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("translate") & QScriptValue::QObjectMember)) {
return QTranslator::translate(context, sourceText, disambiguation);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QString >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, const_cast<char *>(context))
<< qScriptValueFromValue(_q_engine, const_cast<char *>(sourceText))
<< qScriptValueFromValue(_q_engine, const_cast<char *>(disambiguation))));
}
}
示例2: QScriptValueList
bool QtScriptShell_QDoubleSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result)
{
QScriptValue _q_function = __qtscript_self.property("nativeEvent");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("nativeEvent") & QScriptValue::QObjectMember)) {
return QDoubleSpinBox::nativeEvent(eventType, message, result);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<bool >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, eventType)
<< qScriptValueFromValue(_q_engine, message)
<< qScriptValueFromValue(_q_engine, result)));
}
}
示例3: QScriptValueList
QVariant QtScriptShell_QAbstractListModel::headerData(int section, Qt::Orientation orientation, int role) const
{
QScriptValue _q_function = __qtscript_self.property("headerData");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("headerData") & QScriptValue::QObjectMember)) {
return QAbstractListModel::headerData(section, orientation, role);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QVariant >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, section)
<< qScriptValueFromValue(_q_engine, orientation)
<< qScriptValueFromValue(_q_engine, role)));
}
}
示例4: QScriptValueList
QRect QtScriptShell_QPlastiqueStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const
{
QScriptValue _q_function = __qtscript_self.property("itemPixmapRect");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("itemPixmapRect") & QScriptValue::QObjectMember)) {
return QPlastiqueStyle::itemPixmapRect(r, flags, pixmap);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QRect >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, r)
<< qScriptValueFromValue(_q_engine, flags)
<< qScriptValueFromValue(_q_engine, pixmap)));
}
}
示例5: qFatal
QPixmap QtScriptShell_QPlastiqueStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const
{
QScriptValue _q_function = __qtscript_self.property("standardPixmap");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("standardPixmap") & QScriptValue::QObjectMember)) {
qFatal("QPlastiqueStyle::standardPixmap() is abstract!");
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QPixmap >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, standardPixmap)
<< qScriptValueFromValue(_q_engine, const_cast<QStyleOption *>(opt))
<< qScriptValueFromValue(_q_engine, const_cast<QWidget *>(widget))));
}
}
示例6: QScriptValueList
bool QtScriptShell_QStandardItemModel::removeColumns(int column, int count, const QModelIndex& parent)
{
QScriptValue _q_function = __qtscript_self.property("removeColumns");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("removeColumns") & QScriptValue::QObjectMember)) {
return QStandardItemModel::removeColumns(column, count, parent);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<bool >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, column)
<< qScriptValueFromValue(_q_engine, count)
<< qScriptValueFromValue(_q_engine, parent)));
}
}
示例7: qFatal
int QtScriptShell_QAccessibleInterfaceEx::navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const
{
QScriptValue _q_function = __qtscript_self.property("navigate");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("navigate") & QScriptValue::QObjectMember)) {
qFatal("QAccessibleInterfaceEx::navigate() is abstract!");
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<int >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, relation)
<< qScriptValueFromValue(_q_engine, index)
<< qScriptValueFromValue(_q_engine, iface)));
}
}
示例8: QScriptValueList
QModelIndex QtScriptShell_QSqlTableModel::index(int row, int column, const QModelIndex& parent) const
{
QScriptValue _q_function = __qtscript_self.property("index");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("index") & QScriptValue::QObjectMember)) {
return QSqlTableModel::index(row, column, parent);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QModelIndex >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, row)
<< qScriptValueFromValue(_q_engine, column)
<< qScriptValueFromValue(_q_engine, parent)));
}
}
示例9: QScriptValueList
bool QtScriptShell_QAccessibleObject::doAction(int action, int child, const QList<QVariant >& params)
{
QScriptValue _q_function = __qtscript_self.property("doAction");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("doAction") & QScriptValue::QObjectMember)) {
return QAccessibleObject::doAction(action, child, params);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<bool >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, action)
<< qScriptValueFromValue(_q_engine, child)
<< qScriptValueFromValue(_q_engine, params)));
}
}
示例10: QScriptValueList
int QtScriptShell_QAccessibleWidgetEx::navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const
{
QScriptValue _q_function = __qtscript_self.property("navigate");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("navigate") & QScriptValue::QObjectMember)) {
return QAccessibleWidgetEx::navigate(rel, entry, target);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<int >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, rel)
<< qScriptValueFromValue(_q_engine, entry)
<< qScriptValueFromValue(_q_engine, target)));
}
}
示例11: QScriptValueList
QWidget* QtScriptShell_QUiLoader::createWidget(const QString& className, QWidget* parent, const QString& name)
{
QScriptValue _q_function = __qtscript_self.property("createWidget");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("createWidget") & QScriptValue::QObjectMember)) {
return QUiLoader::createWidget(className, parent, name);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QWidget* >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, className)
<< qScriptValueFromValue(_q_engine, parent)
<< qScriptValueFromValue(_q_engine, name)));
}
}
示例12: QScriptValueList
void QtScriptShell_QDoubleValidator::setRange(double bottom, double top, int decimals)
{
QScriptValue _q_function = __qtscript_self.property("setRange");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("setRange") & QScriptValue::QObjectMember)) {
QDoubleValidator::setRange(bottom, top, decimals);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, bottom)
<< qScriptValueFromValue(_q_engine, top)
<< qScriptValueFromValue(_q_engine, decimals));
}
}
示例13: QScriptValueList
void QtScriptShell_QWebPage::javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID)
{
QScriptValue _q_function = __qtscript_self.property("javaScriptConsoleMessage");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("javaScriptConsoleMessage") & QScriptValue::QObjectMember)) {
QWebPage::javaScriptConsoleMessage(message, lineNumber, sourceID);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, message)
<< qScriptValueFromValue(_q_engine, lineNumber)
<< qScriptValueFromValue(_q_engine, sourceID));
}
}
示例14: QScriptValueList
void QtScriptShell_QGraphicsWebView::paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
QScriptValue _q_function = __qtscript_self.property("paintWindowFrame");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("paintWindowFrame") & QScriptValue::QObjectMember)) {
QGraphicsWebView::paintWindowFrame(painter, option, widget);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, painter)
<< qScriptValueFromValue(_q_engine, const_cast<QStyleOptionGraphicsItem *>(option))
<< qScriptValueFromValue(_q_engine, widget));
}
}
示例15: handleExtensionPacket
void MapleManager::handleExtensionPacket(QJsonObject object)
{
QString content = object.value(Packets::content_tag).toString();
QString extension = object.value(Packets::extension_tag).toString();
extension.replace(Packets::client_tag, Packets::server_tag);
QStringList ext = extension.split(".");
if(!ext.isEmpty())
{
QScriptValue function = m_engine->globalObject().property(ext.first());
for(auto i = 1; i < ext.length(); ++i)
function = function.property(ext.at(i));
function = function.property(Packets::handler_tag);
function.call(QScriptValue(),QScriptValueList() << content );
}
}