Commit 7fecf63b authored by Elvis Stansvik's avatar Elvis Stansvik

Consider QVTK* headers in WhatModulesVTK.py

Headers installed by the Qt and QtOpenGL modules in GUISupport use this
header naming convention. This allows the script to identify that including
QVTKWidget.h means you depend on the vtkGUISupportQt module, for instance
parent 546757d9
......@@ -86,7 +86,7 @@ def IncludesToPaths(path, renderingBackend='OpenGL'):
Build a dict that maps include files to paths.
'''
includeToPath = dict()
prog = re.compile(r"(vtk.*\.h)")
prog = re.compile(r"((?:vtk|QVTK).*\.h)")
for root, dirs, files in os.walk(path):
for f in files:
if prog.match(f):
......@@ -125,7 +125,7 @@ def FindIncludes(path):
Build a set that contains vtk includes.
'''
includes = set()
includeProg = re.compile(r"(vtk.*\.h)")
includeProg = re.compile(r"((?:vtk|QVTK).*\.h)")
fid = open(path, "r")
contents = fid.read()
incs = includeProg.findall(contents)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment