本文整理汇总了C++中QScriptValueList函数的典型用法代码示例。如果您正苦于以下问题:C++ QScriptValueList函数的具体用法?C++ QScriptValueList怎么用?C++ QScriptValueList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了QScriptValueList函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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))));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QTranslator.cpp
示例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)));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QDoubleSpinBox.cpp
示例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)));
}
}
开发者ID:navrocky,项目名称:CuteReport,代码行数:15,代码来源:qtscriptshell_QAbstractListModel.cpp
示例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)));
}
}
开发者ID:Mistobaan,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QPlastiqueStyle.cpp
示例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))));
}
}
开发者ID:Mistobaan,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QPlastiqueStyle.cpp
示例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)));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QStandardItemModel.cpp
示例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)));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QAccessibleInterfaceEx.cpp
示例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)));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QSqlTableModel.cpp
示例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)));
}
}
开发者ID:Mistobaan,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QAccessibleObject.cpp
示例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)));
}
}
开发者ID:Mistobaan,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QAccessibleWidgetEx.cpp
示例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)));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QUiLoader.cpp
示例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));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QDoubleValidator.cpp
示例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));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QWebPage.cpp
示例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));
}
}
开发者ID:Alpha-Kand,项目名称:qcad,代码行数:15,代码来源:qtscriptshell_QGraphicsWebView.cpp
示例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 );
}
}
开发者ID:WecodezFox,项目名称:FoxFramework,代码行数:15,代码来源:maplemanager.cpp
示例16: QScriptValueList
QNetworkReply* QtScriptShell_QNetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData)
{
QScriptValue _q_function = __qtscript_self.property("createRequest");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("createRequest") & QScriptValue::QObjectMember)) {
return QNetworkAccessManager::createRequest(op, request, outgoingData);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
return qscriptvalue_cast<QNetworkReply* >(_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, op)
<< qScriptValueFromValue(_q_engine, request)
<< qScriptValueFromValue(_q_engine, outgoingData)));
}
}
开发者ID:SSMN,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QNetworkAccessManager.cpp
示例17: QScriptValueList
void QtScriptShell_QTreeWidgetItem::setData(int column, int role, const QVariant& value)
{
QScriptValue _q_function = __qtscript_self.property("setData");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("setData") & QScriptValue::QObjectMember)) {
QTreeWidgetItem::setData(column, role, value);
} else {
QScriptEngine *_q_engine = __qtscript_self.engine();
_q_function.call(__qtscript_self,
QScriptValueList()
<< qScriptValueFromValue(_q_engine, column)
<< qScriptValueFromValue(_q_engine, role)
<< qScriptValueFromValue(_q_engine, value));
}
}
开发者ID:SSMN,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QTreeWidgetItem.cpp
示例18: qFatal
void QtScriptShell_QAbstractGraphicsShapeItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
QScriptValue _q_function = __qtscript_self.property("paint");
if (!_q_function.isFunction() || QTSCRIPT_IS_GENERATED_FUNCTION(_q_function)
|| (__qtscript_self.propertyFlags("paint") & QScriptValue::QObjectMember)) {
qFatal("QAbstractGraphicsShapeItem::paint() is abstract!");
} 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));
}
}
开发者ID:Mistobaan,项目名称:MuseScore,代码行数:15,代码来源:qtscriptshell_QAbstractGraphicsShapeItem.cpp
注:本文中的QScriptValueList函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论