diff options
Diffstat (limited to 'doc/man/man3/tqaxbase.3qt')
-rw-r--r-- | doc/man/man3/tqaxbase.3qt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/man/man3/tqaxbase.3qt b/doc/man/man3/tqaxbase.3qt index fc0f1969f..e8c6f0a2e 100644 --- a/doc/man/man3/tqaxbase.3qt +++ b/doc/man/man3/tqaxbase.3qt @@ -33,7 +33,7 @@ Inherited by QAxObject and QAxWidget. .BI "QVariant \fBdynamicCall\fR ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" .br .ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, QValueList<QVariant> & vars )" +.BI "QVariant \fBdynamicCall\fR ( const QCString & function, TQValueList<QVariant> & vars )" .br .ti -1c .BI "QAxObject * \fBquerySubObject\fR ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" @@ -156,7 +156,7 @@ QAxBase transparently converts between COM data types and the equivalent TQt dat .PP Supported COM datatypes are listed in the first column of following table. The second column is the TQt type that can be used with the TQObject property functions. The third column is the TQt type that is used in the prototype of generated signals and slots for in-parameters, and the last column is the TQt type that is used in the prototype of signals and slots for out-parameters. <center>.nf .TS -l - l. COM type TQt property in-parameter out-parameter VARIANT_BOOL bool bool bool& BSTR TQString const TQString& TQString& char, short, int, long int int int& uchar, ushort, uint, ulong uint uint uint& float, double double double double& DATE QDateTime const QDateTime& QDateTime& CY TQ_LLONG TQ_LLONG TQ_LLONG& OLE_COLOR TQColor const TQColor& TQColor& SAFEARRAY(VARIANT) QValueList<QVariant> const QValueList<QVariant>& QValueList<QVariant>& SAFEARRAY(BYTE) QByteArray const QByteArray& QByteArray& SAFEARRAY(BSTR) QStringList const QStringList& QStringList& VARIANT type-dependent const QVariant& QVariant& IFontDisp* QFont const QFont& QFont& IPictureDisp* QPixmap const QPixmap& QPixmap& IDispatch* QAxObject* (read-only) QAxBase::asVariant() QAxObject* (return value) IUnknown* QAxObject* (read-only) QAxBase::asVariant() QAxObject* (return value) SCODE, DECIMAL \fIunsupported\fR \fIunsupported\fR +l - l. COM type TQt property in-parameter out-parameter VARIANT_BOOL bool bool bool& BSTR TQString const TQString& TQString& char, short, int, long int int int& uchar, ushort, uint, ulong uint uint uint& float, double double double double& DATE QDateTime const QDateTime& QDateTime& CY TQ_LLONG TQ_LLONG TQ_LLONG& OLE_COLOR TQColor const TQColor& TQColor& SAFEARRAY(VARIANT) TQValueList<QVariant> const TQValueList<QVariant>& TQValueList<QVariant>& SAFEARRAY(BYTE) QByteArray const QByteArray& QByteArray& SAFEARRAY(BSTR) QStringList const QStringList& QStringList& VARIANT type-dependent const QVariant& QVariant& IFontDisp* QFont const QFont& QFont& IPictureDisp* QPixmap const QPixmap& QPixmap& IDispatch* QAxObject* (read-only) QAxBase::asVariant() QAxObject* (return value) IUnknown* QAxObject* (read-only) QAxBase::asVariant() QAxObject* (return value) SCODE, DECIMAL \fIunsupported\fR \fIunsupported\fR .TE .fi </center> @@ -208,20 +208,20 @@ use the QAxBase API like this: bool ok = object.dynamicCall( "addColumn(const TQString&)", "Column 1" ).toBool(); .br .br - QValueList<QVariant> varlist; + TQValueList<QVariant> varlist; .br - QValueList<QVariant> parameters; + TQValueList<QVariant> parameters; .br parameters << QVariant( varlist ); .br - int n = object.dynamicCall( "fillList(QValueList<QVariant>&)", parameters ).toInt(); + int n = object.dynamicCall( "fillList(TQValueList<QVariant>&)", parameters ).toInt(); .br .br QAxObject *item = object.querySubItem( "item(int)", 5 ); .br .fi .PP -Note that the QValueList the object should fill has to be provided as an element in the parameter list of QVariants. +Note that the TQValueList the object should fill has to be provided as an element in the parameter list of QVariants. .PP If you need to access properties or pass parameters of unsupported datatypes you must access the COM object directly through its IDispatch implementation or other interfaces. Those interfaces can be retrieved through queryInterface(). .PP @@ -246,7 +246,7 @@ To get the definition of the COM interfaces you will have to use the header file If you need to react to events that pass parameters of unsupported datatypes you can use the generic signal that delivers the event data as provided by the COM event. .SS "Member Type Documentation" .SH "QAxBase::PropertyBag" -A QMap<TQString,QVariant> that can store properties as name:value pairs. +A TQMap<TQString,QVariant> that can store properties as name:value pairs. .SH MEMBER FUNCTION DOCUMENTATION .SH "QAxBase::QAxBase ( IUnknown * iface = 0 )" Creates a QAxBase object that wraps the COM object \fIiface\fR. If \fIiface\fR is 0 (the default), use setControl() to instantiate a COM object. @@ -330,7 +330,7 @@ It is only possible to call functions through dynamicCall() that have parameters This is also more efficient. .PP Example: qutlook/centralwidget.cpp. -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, QValueList<QVariant> & vars )" +.SH "QVariant QAxBase::dynamicCall ( const QCString & function, TQValueList<QVariant> & vars )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Calls the COM object's method \fIfunction\fR, passing the parameters in \fIvars\fR, and returns the value returned by the method. If the method does not return a value or when the function call failed this function returns an invalid QVariant object. |