3 # See https://github.com/fluxer/katie/wiki/Namespace-incompatibilities
7 # generated via find /usr/include/katie/ -name 'Q*' -printf ' "%f",\n' | sort -u
11 "QAbstractEventDispatcher",
12 "QAbstractExtensionFactory",
13 "QAbstractExtensionManager",
14 "QAbstractFileEngine",
15 "QAbstractFileEngineIterator",
16 "QAbstractFormBuilder",
17 "QAbstractGraphicsShapeItem",
18 "QAbstractItemDelegate",
22 "QAbstractNetworkCache",
23 "QAbstractPageSetupDialog",
24 "QAbstractPrintDialog",
25 "QAbstractProxyModel",
26 "QAbstractScrollArea",
30 "QAbstractTableModel",
31 "QAbstractTextDocumentLayout",
34 "QAccessible2Interface",
35 "QAccessibleActionInterface",
36 "QAccessibleApplication",
38 "QAccessibleBridgeFactoryInterface",
39 "QAccessibleBridgePlugin",
40 "QAccessibleEditableTextInterface",
42 "QAccessibleFactoryInterface",
43 "QAccessibleImageInterface",
44 "QAccessibleInterface",
45 "QAccessibleInterfaceEx",
47 "QAccessibleObjectEx",
49 "QAccessibleSimpleEditableTextInterface",
50 "QAccessibleTable2CellInterface",
51 "QAccessibleTable2Interface",
52 "QAccessibleTableInterface",
53 "QAccessibleTextInterface",
54 "QAccessibleValueInterface",
56 "QAccessibleWidgetEx",
100 "QContiguousCacheData",
101 "QContiguousCacheTypedData",
103 "QCryptographicHash",
111 "QDBusAbstractAdaptor",
112 "QDBusAbstractInterface",
113 "QDBusAbstractInterfaceBase",
116 "QDBusConnectionInterface",
124 "QDBusPendingCallWatcher",
126 "QDBusPendingReplyData",
129 "QDBusServiceWatcher",
131 "QDBusUnixFileDescriptor",
134 "QDeclarativeAttachedPropertiesFunc",
135 "QDeclarativeComponent",
136 "QDeclarativeContext",
137 "QDeclarativeEngine",
139 "QDeclarativeExpression",
140 "QDeclarativeExtensionInterface",
141 "QDeclarativeExtensionPlugin",
142 "QDeclarativeImageProvider",
145 "QDeclarativeListProperty",
146 "QDeclarativeListReference",
147 "QDeclarativeNetworkAccessManagerFactory",
148 "QDeclarativeParserStatus",
149 "QDeclarativeProperties",
150 "QDeclarativeProperty",
151 "QDeclarativePropertyMap",
152 "QDeclarativePropertyValueInterceptor",
153 "QDeclarativePropertyValueSource",
154 "QDeclarativeScriptString",
155 "QDeclarativeTypeInfo",
157 "QDesignerActionEditorInterface",
158 "QDesignerComponents",
159 "QDesignerContainerExtension",
160 "QDesignerCustomWidgetCollectionInterface",
161 "QDesignerCustomWidgetInterface",
162 "QDesignerDnDItemInterface",
163 "QDesignerDynamicPropertySheetExtension",
164 "QDesignerExtraInfoExtension",
165 "QDesignerFormEditorInterface",
166 "QDesignerFormEditorPluginInterface",
167 "QDesignerFormWindowCursorInterface",
168 "QDesignerFormWindowInterface",
169 "QDesignerFormWindowManagerInterface",
170 "QDesignerFormWindowToolInterface",
171 "QDesignerIconCacheInterface",
172 "QDesignerIntegrationInterface",
173 "QDesignerLanguageExtension",
174 "QDesignerLayoutDecorationExtension",
175 "QDesignerMemberSheetExtension",
176 "QDesignerMetaDataBaseInterface",
177 "QDesignerMetaDataBaseItemInterface",
178 "QDesignerObjectInspectorInterface",
179 "QDesignerPromotionInterface",
180 "QDesignerPropertyEditorInterface",
181 "QDesignerPropertySheetExtension",
182 "QDesignerResourceBrowserInterface",
183 "QDesignerTaskMenuExtension",
184 "QDesignerWidgetBoxInterface",
185 "QDesignerWidgetDataBaseInterface",
186 "QDesignerWidgetDataBaseItemInterface",
187 "QDesignerWidgetFactoryInterface",
201 "QDomDocumentFragment",
205 "QDomEntityReference",
206 "QDomImplementation",
211 "QDomProcessingInstruction",
220 "QDynamicPropertyChangeEvent",
226 "QEventSizeOfChecker",
227 "QExplicitlySharedDataPointer",
237 "QFileSystemWatcher",
256 "QFutureInterfaceBase",
258 "QFutureSynchronizer",
260 "QFutureWatcherBase",
263 "QGenericReturnArgument",
265 "QGlobalStaticDeleter",
270 "QGraphicsAnchorLayout",
271 "QGraphicsBlurEffect",
272 "QGraphicsColorizeEffect",
273 "QGraphicsDropShadowEffect",
275 "QGraphicsEllipseItem",
276 "QGraphicsGridLayout",
278 "QGraphicsItemAnimation",
279 "QGraphicsItemGroup",
281 "QGraphicsLayoutItem",
282 "QGraphicsLinearLayout",
285 "QGraphicsOpacityEffect",
287 "QGraphicsPixmapItem",
288 "QGraphicsPolygonItem",
289 "QGraphicsProxyWidget",
294 "QGraphicsSceneContextMenuEvent",
295 "QGraphicsSceneDragDropEvent",
296 "QGraphicsSceneEvent",
297 "QGraphicsSceneHelpEvent",
298 "QGraphicsSceneHoverEvent",
299 "QGraphicsSceneMouseEvent",
300 "QGraphicsSceneMoveEvent",
301 "QGraphicsSceneResizeEvent",
302 "QGraphicsSceneWheelEvent",
303 "QGraphicsSimpleTextItem",
310 "QGuiPlatformPlugin",
326 "QHttpRequestHeader",
327 "QHttpResponseHeader",
330 "QIconEngineFactoryInterface",
331 "QIconEngineFactoryInterfaceV2",
333 "QIconEnginePluginV2",
335 "QIdentityProxyModel",
338 "QImageIOHandlerFactoryInterface",
351 "QItemEditorCreator",
352 "QItemEditorCreatorBase",
353 "QItemEditorFactory",
355 "QItemSelectionModel",
356 "QItemSelectionRange",
374 "QLinkedListIterator",
411 "QMetaObjectAccessor",
425 "QMutableFutureIterator",
426 "QMutableHashIterator",
427 "QMutableLinkedListIterator",
428 "QMutableListIterator",
429 "QMutableMapIterator",
430 "QMutableSetIterator",
431 "QMutableStringListIterator",
432 "QMutableVectorIterator",
435 "QNetworkAccessManager",
436 "QNetworkAddressEntry",
437 "QNetworkCacheMetaData",
443 "QNetworkProxyFactory",
444 "QNetworkProxyQuery",
449 "QObjectCleanupHandler",
458 "QPainterPathPrivate",
459 "QPainterPathStroker",
463 "QParallelAnimationGroup",
466 "QPersistentModelIndex",
470 "QPlainTextDocumentLayout",
484 "QPrintPreviewDialog",
485 "QPrintPreviewWidget",
487 "QProcessEnvironment",
490 "QPropertyAnimation",
511 "QScopedArrayPointer",
513 "QScopedPointerArrayDeleter",
514 "QScopedPointerPodDeleter",
515 "QScopedValueRollback",
518 "QScriptClassPropertyIterator",
520 "QScriptContextInfo",
521 "QScriptContextInfoList",
523 "QScriptEngineAgent",
524 "QScriptEngineDebugger",
525 "QScriptExtensionInterface",
526 "QScriptExtensionPlugin",
529 "QScriptSyntaxCheckResult",
531 "QScriptValueIterator",
536 "QSequentialAnimationGroup",
542 "QSharedDataPointer",
556 "QSortFilterProxyModel",
574 "QStandardItemEditorCreator",
575 "QStandardItemModel",
581 "QStringListIterator",
586 "QStyledItemDelegate",
588 "QStyleFactoryInterface",
590 "QStyleHintReturnMask",
591 "QStyleHintReturnVariant",
593 "QStyleOptionButton",
594 "QStyleOptionComboBox",
595 "QStyleOptionComplex",
596 "QStyleOptionDockWidget",
597 "QStyleOptionDockWidgetV2",
598 "QStyleOptionFocusRect",
600 "QStyleOptionFrameV2",
601 "QStyleOptionFrameV3",
602 "QStyleOptionGraphicsItem",
603 "QStyleOptionGroupBox",
604 "QStyleOptionHeader",
605 "QStyleOptionMenuItem",
606 "QStyleOptionProgressBar",
607 "QStyleOptionProgressBarV2",
608 "QStyleOptionRubberBand",
609 "QStyleOptionSizeGrip",
610 "QStyleOptionSlider",
611 "QStyleOptionSpinBox",
613 "QStyleOptionTabBarBase",
614 "QStyleOptionTabBarBaseV2",
617 "QStyleOptionTabWidgetFrame",
618 "QStyleOptionTabWidgetFrameV2",
619 "QStyleOptionTitleBar",
620 "QStyleOptionToolBar",
621 "QStyleOptionToolBox",
622 "QStyleOptionToolBoxV2",
623 "QStyleOptionToolButton",
624 "QStyleOptionViewItem",
625 "QStyleOptionViewItemV2",
626 "QStyleOptionViewItemV3",
627 "QStyleOptionViewItemV4",
633 "QSyntaxHighlighter",
641 "QTableWidgetSelectionRange",
645 "QtConcurrentFilter",
657 "QtDesignerComponents",
661 "QTestAccessibility",
662 "QTestAccessibilityEvent",
663 "QTestBasicStreamer",
669 "QTestElementAttribute",
674 "QTestKeyClicksEvent",
676 "QTestLightXmlStreamer",
679 "QTestXunitStreamer",
684 "QTextBlockUserData",
685 "QTextBoundaryFinder",
692 "QTextDocumentFragment",
693 "QTextDocumentWriter",
700 "QTextFrameLayoutData",
710 "QTextObjectInterface",
713 "QTextStreamFunction",
714 "QTextStreamManipulator",
717 "QTextTableCellFormat",
736 "QtPluginInstanceFunction",
742 "QTreeWidgetItemIterator",
780 "QWhatsThisClickedEvent",
791 "QWindowStateChangeEvent",
796 "QX11EmbedContainer",
800 "QXmlContentHandler",
802 "QXmlDefaultHandler",
804 "QXmlEntityResolver",
807 "QXmlLexicalHandler",
809 "QXmlNamespaceSupport",
810 "QXmlParseException",
813 "QXmlStreamAttribute",
814 "QXmlStreamAttributes",
815 "QXmlStreamEntityDeclaration",
816 "QXmlStreamEntityDeclarations",
817 "QXmlStreamEntityResolver",
818 "QXmlStreamNamespaceDeclaration",
819 "QXmlStreamNamespaceDeclarations",
820 "QXmlStreamNotationDeclaration",
821 "QXmlStreamNotationDeclarations",
825 regex = re.compile('((?:class|struct|template.*) (%s);)' % '|'.join(classlist))
828 for root, dirs, files in os.walk(os.curdir):
830 if f.endswith(('.cpp', '.cc', '.hpp', '.h')):
831 cppfiles.append('%s/%s' % (root, f))
834 cpp = os.path.realpath(cpp)
835 with open(cpp, 'r') as f:
836 cppcontent = f.read()
837 for match, sclass in regex.findall(cppcontent):
838 with open(cpp, 'w') as f:
839 print('replacing folrward declaration of %s with inclusion in: %s' % (sclass, cpp))
840 cppcontent = cppcontent.replace(match, '#include <%s>' % sclass)