|
@@ -5816,6 +5816,7 @@ QScriptValue QComboBox_currentData(QScriptContext *context,
|
5816
|
5816
|
QScriptValue QComboBox_addItem(QScriptContext *context, QScriptEngine *engine);
|
5817
|
5817
|
QScriptValue QComboBox_setModel(QScriptContext *context, QScriptEngine *engine);
|
5818
|
5818
|
QScriptValue QComboBox_findText(QScriptContext *context, QScriptEngine *engine);
|
|
5819
|
+QScriptValue QComboBox_findData(QScriptContext *context, QScriptEngine *engine);
|
5819
|
5820
|
|
5820
|
5821
|
@ These functions should seem familiar by now.
|
5821
|
5822
|
|
|
@@ -5833,6 +5834,7 @@ void setQComboBoxProperties(QScriptValue value, QScriptEngine *engine)
|
5833
|
5834
|
value.setProperty("addItem", engine->newFunction(QComboBox_addItem));
|
5834
|
5835
|
value.setProperty("setModel", engine->newFunction(QComboBox_setModel));
|
5835
|
5836
|
value.setProperty("findText", engine->newFunction(QComboBox_findText));
|
|
5837
|
+ value.setProperty("findData", engine->newFunction(QComboBox_findData));
|
5836
|
5838
|
}
|
5837
|
5839
|
|
5838
|
5840
|
QScriptValue QComboBox_currentData(QScriptContext *context,
|
|
@@ -5863,6 +5865,12 @@ QScriptValue QComboBox_findText(QScriptContext *context, QScriptEngine *engine)
|
5863
|
5865
|
return QScriptValue(engine, self->findText(argument<QString>(0, context)));
|
5864
|
5866
|
}
|
5865
|
5867
|
|
|
5868
|
+QScriptValue QComboBox_findData(QScriptContext *context, QScriptEngine *engine)
|
|
5869
|
+{
|
|
5870
|
+ QComboBox *self = getself<QComboBox *>(context);
|
|
5871
|
+ return QScriptValue(engine, self->findData(argument<QVariant>(0, context)));
|
|
5872
|
+}
|
|
5873
|
+
|
5866
|
5874
|
@i abouttypica.w
|
5867
|
5875
|
|
5868
|
5876
|
@** A representation of temperature measurements.
|