@@ -87,6 +87,7 @@ listview_pat = re.compile(r'.*\ ListView {')
8787gridview_pat = re.compile(r'.*\ GridView {')
8888flickable_pats = [flickable_pat, listview_pat, gridview_pat]
8989unity_components_pat = re.compile(r'.*import ".*Components"')
90+components_import_pat = re.compile(r'.*import "."')
9091components_path = re.compile(r'.*qml/Components.*')
9192
9293def scan_for_flickable_imports(file_path, component_pats, qtquick_pat, unitycomponents_pat):
@@ -161,6 +162,9 @@ try:
161162 if not components_path.match(path):
162163 if scan_for_flickable_imports(path, flickable_pats, quick_good_pat, unity_components_pat):
163164 found_bad_import = True
165+ else:
166+ if scan_for_flickable_imports(path, flickable_pats, quick_good_pat, components_import_pat):
167+ found_bad_import = True
164168
165169except OSError as e:
166170 error("cannot create file list for \"" + dir + "\": " + e.strerror)