Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
4.7.1
-
None
-
Windows 7, MSVC9, 32-bit
Description
if moc is called to generate the moc source for a file named c:/path.to/header (notice the dot in the path and no .h at the filename).
In line 365 of src/tools/moc/main.cpp moc checks if the dot character is before the directory separator, but on a windows system there're two directory separators: backslash (the native windows one) and slash (used by qt). In the line only the native separator char is checked and not the qt one.
If moc does not find a 'h' after the dot (in my example from above it would be 't') it does not include the header file in the generated moc file and the compilation of the moc source would fail.