Compatibility with QT_NO_KEYWORDS
It seems that keywords signals
and slots
are still being used in some of VTK classes.
This can leads to compilation errors when building an application/library using QT_NO_KEYWORDS
and can also interfere with Boost signals module.
To be compatible with the QT_NO_KEYWORDS
we could replace remaining signals
by Q_SIGNALS
and slots
by Q_SLOTS
.
Here's a non-exhaustive list of files containing signals
and/or slots
:
- Views/Qt/vtkQtTreeView.h
- GUISupport/Qt/QVTKOpenGLWidget.h
- GUISupport/Qt/vtkQtTableModelAdapter.h
- GUISupport/Qt/vtkQtAbstractModelAdapter.h
- GUISupport/Qt/vtkQtConnection.h
- GUISupport/Qt/QVTKOpenGLNativeWidget.h
- GUISupport/Qt/vtkTDxQtUnixDevices.h
- GUISupport/Qt/QVTKOpenGLWindow.h
- GUISupport/QtOpenGL/QVTKWidget2.h
- Views/Qt/vtkQtTableView.h
- Views/Qt/vtkQtAnnotationView.h
- Views/Qt/vtkQtListView.h
- GUISupport/QtWebkit/vtkQtRichTextView.h
- GUISupport/Qt/vtkQtDebugLeaksView.h
- GUISupport/Qt/vtkQtDebugLeaksModel.h
- GUISupport/QtOpenGL/Testing/Cxx/QTestMainWindow.h
- Examples/GUI/Qt/FourPaneViewer/QtVTKRenderWindows.h
- Examples/GUI/Qt/Events/GUI4.h
- Examples/GUI/Qt/SimpleView/SimpleView.h
- Examples/Infovis/Cxx/StatsView/StatsView.h
- Examples/Infovis/Cxx/EasyView/EasyView.h
- Examples/Infovis/Cxx/CustomLinkView/CustomLinkView.h
Seems to be related to #5544 (closed) & #6727 (closed)