|
@@ -14201,6 +14201,8 @@ QScriptValue SqlQueryView_setQuery(QScriptContext *context,
|
14201
|
14201
|
QScriptEngine *engine);
|
14202
|
14202
|
QScriptValue SqlQueryView_setHeaderData(QScriptContext *context,
|
14203
|
14203
|
QScriptEngine *engine);
|
|
14204
|
+QScriptValue SqlQueryView_rows(QScriptContext *context,
|
|
14205
|
+ QScriptEngine *engine);
|
14204
|
14206
|
|
14205
|
14207
|
@ The script constructor is passed to the host environment.
|
14206
|
14208
|
|
|
@@ -14226,6 +14228,7 @@ void setSqlQueryViewProperties(QScriptValue value, QScriptEngine *engine)
|
14226
|
14228
|
value.setProperty("setHeaderData",
|
14227
|
14229
|
engine->newFunction(SqlQueryView_setHeaderData));
|
14228
|
14230
|
value.setProperty("setQuery", engine->newFunction(SqlQueryView_setQuery));
|
|
14231
|
+ value.setProperty("rows", engine->newFunction(SqlQueryView_rows));
|
14229
|
14232
|
}
|
14230
|
14233
|
|
14231
|
14234
|
@ The properties added are simplified wrappers around the class methods.
|
|
@@ -14250,6 +14253,12 @@ QScriptValue SqlQueryView_setHeaderData(QScriptContext *context,
|
14250
|
14253
|
return QScriptValue();
|
14251
|
14254
|
}
|
14252
|
14255
|
|
|
14256
|
+QScriptValue SqlQueryView_rows(QScriptContext *context, QScriptEngine *)
|
|
14257
|
+{
|
|
14258
|
+ SqlQueryView *self = getself<SqlQueryView *>(context);
|
|
14259
|
+ return QScriptValue(self->model()->rowCount());
|
|
14260
|
+}
|
|
14261
|
+
|
14253
|
14262
|
@** Reporting.
|
14254
|
14263
|
|
14255
|
14264
|
\noindent \pn{} version 1.4 added a new type of menu which is designed to
|