2 <typesystem package="com.trolltech.qt.gui">
4 <rejection class="QAbstractTextDocumentLayout"/>
5 <rejection class="QColormap"/>
6 <rejection class="QFontDatabase"/>
7 <rejection class="QIconEngineV2"/>
8 <rejection class="QInputMethodEvent"/>
9 <rejection class="QPainterPath::Element"/>
10 <rejection class="QTextBlock::iterator"/>
11 <rejection class="QTextEdit::ExtraSelection"/>
12 <rejection class="QTextFrame::iterator"/>
13 <rejection class="QTextLayout::FormatRange"/>
14 <rejection class="QTreeWidgetItemIterator"/>
16 <!-- ### the generator uses the java name -->
17 <rejection class="QAccessibleFactoryInterface"/>
18 <rejection class="QIconEngineFactoryInterfaceV2"/>
19 <rejection class="QImageIOHandlerFactoryInterface"/>
20 <rejection class="QInputContextFactoryInterface"/>
21 <rejection class="QStyleFactoryInterface"/>
22 <rejection class="QPictureFormatInterface"/>
24 <!-- ### these don't compile -->
25 <rejection class="QAbstractProxyModel"/>
26 <rejection class="QSortFilterProxyModel"/>
27 <rejection class="QDirModel"/>
28 <rejection class="QFileSystemModel"/>
29 <rejection class="QPrinterInfo"/>
30 <rejection class="QProxyModel"/>
31 <rejection class="QPrinterInfo"/> <!-- ### constructor takes QPrinter&, must become QPrinter* -->
32 <rejection class="QTextOption"/> <!-- ### nested class QTextOption::Tab -->
34 <value-type name="QTextFormat">
35 <modify-function signature="setProperty(int,QVector<QTextLength>)" rename="setLengthVectorProperty"/>
36 <inject-code class="native" position="constructor">
37 if ((context->argumentCount() == 1) && (qMetaTypeId<QTextFormat>() == context->argument(0).toVariant().userType())) {
38 QTextFormat _q_arg0 = qscriptvalue_cast<QTextFormat>(context->argument(0));
39 QTextFormat _q_cpp_result(_q_arg0);
40 QScriptValue _q_result = context->engine()->newVariant(context->thisObject(), qVariantFromValue(_q_cpp_result));
46 <value-type name="QBrush">
47 <modify-function signature="QBrush(QGradient)">
48 <modify-argument index="1">
49 <replace-type modified-type="QGradient*"/>
50 <conversion-rule class="native">
51 QGradient & %out% = *qscriptvalue_cast<QGradient*>(%in%);
57 <interface-type name="QGraphicsItem">
58 <modify-function signature="supportsExtension(QGraphicsItem::Extension)const" remove="all"/>
59 <modify-function signature="setExtension(QGraphicsItem::Extension,QVariant)" remove="all"/>
62 <object-type name="QGraphicsItemAnimation">
64 <include file-name="QPair" location="global"/>
68 <value-type name="QFontInfo">
69 <modify-function signature="QFontInfo(QFontInfo)">
70 <modify-argument index="1">
71 <replace-type modified-type="QFontInfo*"/>
72 <conversion-rule class="native">
73 QFontInfo & %out% = *qscriptvalue_cast<QFontInfo*>(%in%);
79 <!-- ### QFontMetrics and QFontMetricsF are value-typed but don't have default constructor -->
80 <value-type name="QFontMetrics">
81 <modify-function signature="QFontMetrics(QFontMetrics)" remove="all"/>
82 <modify-function signature="operator==(QFontMetrics)const" remove="all"/>
83 <modify-function signature="operator!=(QFontMetrics)const" remove="all"/>
85 <value-type name="QFontMetricsF">
86 <modify-function signature="QFontMetricsF(QFontMetricsF)" remove="all"/>
87 <modify-function signature="QFontMetricsF(QFontMetrics)" remove="all"/>
88 <modify-function signature="operator==(QFontMetricsF)const" remove="all"/>
89 <modify-function signature="operator!=(QFontMetricsF)const" remove="all"/>
92 <object-type name="QFontDialog">
93 <inject-code class="native" position="beginning">
94 Q_DECLARE_METATYPE(QScriptValue)
96 <modify-function signature="getFont(bool*,QWidget*)">
97 <modify-argument index="1">
99 <conversion-rule class="native">
100 <insert-template name="core.prepare_removed_bool*_argument"/>
103 <modify-argument index="return">
104 <conversion-rule class="native">
105 <insert-template name="core.convert_to_null_or_wrap"/>
110 <modify-function signature="getFont(bool*,QFont,QWidget*)">
111 <modify-argument index="1">
113 <conversion-rule class="native">
114 <insert-template name="core.prepare_removed_bool*_argument"/>
117 <modify-argument index="return">
118 <conversion-rule class="native">
119 <insert-template name="core.convert_to_null_or_wrap"/>
124 <modify-function signature="getFont(bool*,QFont,QWidget*,QString)">
125 <modify-argument index="1">
127 <conversion-rule class="native">
128 <insert-template name="core.prepare_removed_bool*_argument"/>
131 <modify-argument index="return">
132 <conversion-rule class="native">
133 <insert-template name="core.convert_to_null_or_wrap"/>
139 <value-type name="QImage">
140 <modify-function signature="QImage(const char**)" remove="all"/>
141 <modify-function signature="QImage(const uchar *,int,int,QImage::Format)" remove="all"/>
142 <modify-function signature="QImage(const uchar *,int,int,int,QImage::Format)" remove="all"/>
143 <modify-function signature="QImage(uchar *,int,int,QImage::Format)" remove="all"/>
144 <modify-function signature="QImage(uchar *,int,int,int,QImage::Format)" remove="all"/>
145 <modify-function signature="setColorTable(const QVector<uint>)" remove="all"/>
146 <modify-function signature="loadFromData(const uchar *,int,const char *)" remove="all"/>
147 <modify-function signature="fromData(const uchar *,int,const char *)" remove="all"/>
148 <modify-function signature="bits()" remove="all"/>
149 <modify-function signature="scanLine(int)" remove="all"/>
151 <modify-function signature="QImage(QString,const char*)">
152 <modify-argument index="2">
153 <replace-type modified-type="QString"/>
154 <conversion-rule class="native">
155 <insert-template name="core.convert_string_arg_to_char*"/>
160 <modify-function signature="fromData(QByteArray,const char*)">
161 <modify-argument index="2">
162 <replace-type modified-type="QString"/>
163 <conversion-rule class="native">
164 <insert-template name="core.convert_string_arg_to_char*"/>
169 <modify-function signature="load(QString,const char*)">
170 <modify-argument index="2">
171 <replace-type modified-type="QString"/>
172 <conversion-rule class="native">
173 <insert-template name="core.convert_string_arg_to_char*"/>
178 <modify-function signature="load(QIODevice*,const char*)">
179 <modify-argument index="2">
180 <replace-type modified-type="QString"/>
181 <conversion-rule class="native">
182 <insert-template name="core.convert_string_arg_to_char*"/>
187 <modify-function signature="loadFromData(QByteArray,const char*)">
188 <modify-argument index="2">
189 <replace-type modified-type="QString"/>
190 <conversion-rule class="native">
191 <insert-template name="core.convert_string_arg_to_char*"/>
196 <modify-function signature="save(QString,const char*,int)const">
197 <modify-argument index="2">
198 <replace-type modified-type="QString"/>
199 <conversion-rule class="native">
200 <insert-template name="core.convert_string_arg_to_char*"/>
205 <modify-function signature="save(QIODevice*,const char*,int)const">
206 <modify-argument index="2">
207 <replace-type modified-type="QString"/>
208 <conversion-rule class="native">
209 <insert-template name="core.convert_string_arg_to_char*"/>
216 <object-type name="QInputDialog">
217 <inject-code class="native" position="beginning">
218 Q_DECLARE_METATYPE(QScriptValue)
220 <modify-function signature="getDouble(QWidget *, const QString &, const QString &, double, double, double, int, bool *, QFlags<Qt::WindowType>)">
221 <modify-argument index="8">
223 <conversion-rule class="native">
224 <insert-template name="core.prepare_removed_bool*_argument"/>
227 <modify-argument index="return">
228 <conversion-rule class="native">
229 <insert-template name="core.convert_to_null_or_primitive"/>
234 <modify-function signature="getInteger(QWidget *, const QString &, const QString &, int, int, int, int, bool *, QFlags<Qt::WindowType>)">
235 <modify-argument index="8">
237 <conversion-rule class="native">
238 <insert-template name="core.prepare_removed_bool*_argument"/>
241 <modify-argument index="return">
242 <conversion-rule class="native">
243 <insert-template name="core.convert_to_null_or_primitive"/>
248 <modify-function signature="getItem(QWidget *, const QString &, const QString &, const QStringList<QString> &, int, bool, bool *, QFlags<Qt::WindowType>)">
249 <modify-argument index="7">
251 <conversion-rule class="native">
252 <insert-template name="core.prepare_removed_bool*_argument"/>
255 <modify-argument index="return">
256 <conversion-rule class="native">
257 <insert-template name="core.convert_to_null_or_primitive"/>
262 <modify-function signature="getText(QWidget *, const QString &, const QString &, QLineEdit::EchoMode, const QString &, bool *, QFlags<Qt::WindowType>)">
263 <modify-argument index="6">
265 <conversion-rule class="native">
266 <insert-template name="core.prepare_removed_bool*_argument"/>
269 <modify-argument index="return">
270 <conversion-rule class="native">
271 <insert-template name="core.convert_to_null_or_primitive"/>
277 <object-type name="QListWidgetItem">
278 <modify-function signature="read(QDataStream &)" remove="all"/>
279 <modify-function signature="write(QDataStream &)const" remove="all"/>
280 <modify-function signature="QListWidgetItem(QListWidgetItem)" remove="all"/>
281 <modify-function signature="operator=(QListWidgetItem)" remove="all"/>
282 <modify-function signature="operator<(QListWidgetItem)const" remove="all"/>
285 <object-type name="QTableWidgetItem">
286 <modify-function signature="read(QDataStream &)" remove="all"/>
287 <modify-function signature="write(QDataStream &)const" remove="all"/>
288 <modify-function signature="QTableWidgetItem(QTableWidgetItem)" remove="all"/>
289 <modify-function signature="operator=(QTableWidgetItem)" remove="all"/>
290 <modify-function signature="operator<(QTableWidgetItem)const" remove="all"/>
293 <object-type name="QTreeWidgetItem">
294 <modify-function signature="read(QDataStream &)" remove="all"/>
295 <modify-function signature="write(QDataStream &)const" remove="all"/>
296 <modify-function signature="QTreeWidgetItem(QTreeWidgetItem)" remove="all"/>
297 <modify-function signature="operator=(QTreeWidgetItem)" remove="all"/>
298 <modify-function signature="operator<(QTreeWidgetItem)const" remove="all"/>
301 <object-type name="QStandardItem">
302 <modify-function signature="read(QDataStream &)" remove="all"/>
303 <modify-function signature="write(QDataStream &)const" remove="all"/>
304 <modify-function signature="operator=(QStandardItem)" remove="all"/>
305 <modify-function signature="operator<(QStandardItem)const" remove="all"/>
308 <object-type name="QPainter">
309 <modify-function signature="fontInfo()const" remove="all"/>
310 <modify-function signature="fontMetrics()const" remove="all"/>
311 <modify-function signature="QPainter(QPaintDevice*)" remove="all"/>
313 <modify-function signature="begin(QPaintDevice*)">
314 <modify-argument index="1">
315 <conversion-rule class="native">
316 <insert-template name="core.convert_pointer_arg_and_check_null">
317 <replace from="%TYPE%" to="QPaintDevice*"/>
318 <replace from="%CLASS_NAME%" to="QPainter"/>
319 <replace from="%FUNCTION_NAME%" to="begin"/>
326 <object-type name="QPrinter">
328 <include file-name="QPrinterInfo" location="global"/>
332 <object-type name="QStyle">
333 <modify-function signature="itemTextRect(QFontMetrics,QRect,int,bool,QString)const" remove="all"/>
336 <object-type name="QWidget">
337 <modify-function signature="fontInfo()const" remove="all"/>
338 <modify-function signature="fontMetrics()const" remove="all"/>
339 <modify-function signature="sizeHint()const" rename="getSizeHint"/>
340 <modify-function signature="minimumSizeHint()const" rename="getMinimumSizeHint"/>
341 <modify-function signature="setVisible(bool)" remove="all"/>
345 <object-type name="QCalendarWidget">
346 <modify-function signature="sizeHint()const" rename="getSizeHint"/>
347 <modify-function signature="minimumSizeHint()const" rename="getMinimumSizeHint"/>
350 <object-type name="QAbstractItemView">
351 <!-- ### because the CursorAction enum is protected -->
352 <modify-function signature="moveCursor(QAbstractItemView::CursorAction,QFlags<Qt::KeyboardModifier>)" remove="all"/>
353 <inject-code class="shell-declaration">
354 QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers)
355 { return QModelIndex(); }
359 <object-type name="QAbstractSlider">
360 <modify-function signature="sliderChange(QAbstractSlider::SliderChange)" remove="all"/>
363 <object-type name="QListWidget">
364 <modify-function signature="mimeData(const QList<QListWidgetItem*>)const" remove="all"/>
367 <object-type name="QTableWidget">
368 <modify-function signature="mimeData(const QList<QTableWidgetItem*>)const" remove="all"/>
371 <object-type name="QTreeWidget">
372 <modify-function signature="mimeData(const QList<QTreeWidgetItem*>)const" remove="all"/>
375 <object-type name="QApplication">
376 <modify-function signature="QApplication(int&,char**,QApplication::Type,int)" remove="all"/>
377 <modify-function signature="QApplication(int&,char**,bool,int)" remove="all"/>
378 <modify-function signature="QApplication(int&,char**,int)" remove="all"/>
379 <modify-function signature="commitData(QSessionManager&)" remove="all"/>
380 <modify-function signature="saveState(QSessionManager&)" remove="all"/>
381 <modify-function signature="fontMetrics()" remove="all"/>
382 <modify-function signature="setFont(QFont,const char*)">
383 <modify-argument index="2">
384 <replace-type modified-type="QString"/>
385 <conversion-rule class="native">
386 <insert-template name="core.convert_string_arg_to_char*"/>
390 <modify-function signature="setPalette(QPalette,const char*)">
391 <modify-argument index="2">
392 <replace-type modified-type="QString"/>
393 <conversion-rule class="native">
394 <insert-template name="core.convert_string_arg_to_char*"/>
400 <value-type name="QPicture">
401 <modify-function signature="setData(const char*,uint)" remove="all"/>
403 <modify-function signature="load(QIODevice*,const char*)">
404 <modify-argument index="2">
405 <replace-type modified-type="QString"/>
406 <conversion-rule class="native">
407 <insert-template name="core.convert_string_arg_to_char*"/>
412 <modify-function signature="load(QString,const char*)">
413 <modify-argument index="2">
414 <replace-type modified-type="QString"/>
415 <conversion-rule class="native">
416 <insert-template name="core.convert_string_arg_to_char*"/>
421 <modify-function signature="save(QIODevice*,const char*)">
422 <modify-argument index="2">
423 <replace-type modified-type="QString"/>
424 <conversion-rule class="native">
425 <insert-template name="core.convert_string_arg_to_char*"/>
430 <modify-function signature="save(QString,const char*)">
431 <modify-argument index="2">
432 <replace-type modified-type="QString"/>
433 <conversion-rule class="native">
434 <insert-template name="core.convert_string_arg_to_char*"/>
440 <object-type name="QPictureIO">
441 <modify-function signature="QPictureIO(QIODevice*,const char*)">
442 <modify-argument index="2">
443 <replace-type modified-type="QString"/>
444 <conversion-rule class="native">
445 <insert-template name="core.convert_string_arg_to_char*"/>
450 <modify-function signature="QPictureIO(QString,const char*)">
451 <modify-argument index="2">
452 <replace-type modified-type="QString"/>
453 <conversion-rule class="native">
454 <insert-template name="core.convert_string_arg_to_char*"/>
459 <modify-function signature="setFormat(const char*)">
460 <modify-argument index="1">
461 <replace-type modified-type="QString"/>
462 <conversion-rule class="native">
463 <insert-template name="core.convert_string_arg_to_char*"/>
468 <modify-function signature="setParameters(const char*)">
469 <modify-argument index="1">
470 <replace-type modified-type="QString"/>
471 <conversion-rule class="native">
472 <insert-template name="core.convert_string_arg_to_char*"/>
478 <value-type name="QPixmap">
479 <modify-function signature="loadFromData(const uchar *,uint,const char *,QFlags<Qt::ImageConversionFlag>)" remove="all"/>
481 <modify-function signature="QPixmap(QString,const char*,QFlags<Qt::ImageConversionFlag>)">
482 <modify-argument index="2">
483 <replace-type modified-type="QString"/>
484 <conversion-rule class="native">
485 <insert-template name="core.convert_string_arg_to_char*"/>
490 <modify-function signature="load(QString,const char*,QFlags<Qt::ImageConversionFlag>)">
491 <modify-argument index="2">
492 <replace-type modified-type="QString"/>
493 <conversion-rule class="native">
494 <insert-template name="core.convert_string_arg_to_char*"/>
499 <modify-function signature="loadFromData(QByteArray,const char*,QFlags<Qt::ImageConversionFlag>)">
500 <modify-argument index="2">
501 <replace-type modified-type="QString"/>
502 <conversion-rule class="native">
503 <insert-template name="core.convert_string_arg_to_char*"/>
508 <modify-function signature="save(QIODevice*,const char*,int)const">
509 <modify-argument index="2">
510 <replace-type modified-type="QString"/>
511 <conversion-rule class="native">
512 <insert-template name="core.convert_string_arg_to_char*"/>
517 <modify-function signature="save(QString,const char*,int)const">
518 <modify-argument index="2">
519 <replace-type modified-type="QString"/>
520 <conversion-rule class="native">
521 <insert-template name="core.convert_string_arg_to_char*"/>
527 <value-type name="QBitmap">
528 <modify-function signature="fromData(QSize,const uchar*,QImage::Format)" remove="all"/>
530 <modify-function signature="QBitmap(QString,const char*)">
531 <modify-argument index="2">
532 <replace-type modified-type="QString"/>
533 <conversion-rule class="native">
534 <insert-template name="core.convert_string_arg_to_char*"/>
540 <value-type name="QMatrix">
541 <modify-function signature="inverted(bool*)const">
542 <modify-argument index="1">
548 <value-type name="QTransform">
549 <modify-function signature="inverted(bool*)const">
550 <modify-argument index="1">
556 <suppress-warning text="WARNING(MetaJavaBuilder) :: Rejected enum has no alternative...: QPalette::NColorRoles" />
557 <suppress-warning text="WARNING(MetaJavaBuilder) :: Cannot find enum constant for value 'DragMove' in 'QDragMoveEvent' or any of its super classes" />