| 
														
															@@ -1786,8 +1786,8 @@ void cmQtAutoGenerators::ParseForUic(const std::string& absFilename, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string::size_type matchOffset = 0; 
														 | 
														
														 | 
														
															   std::string::size_type matchOffset = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  const std::string absPath = cmsys::SystemTools::GetFilenamePath( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                   cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/'; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  const std::string realName = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                   cmsys::SystemTools::GetRealPath(absFilename.c_str()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   matchOffset = 0; 
														 | 
														
														 | 
														
															   matchOffset = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   if ((strstr(contentsString.c_str(), "ui_") != NULL) 
														 | 
														
														 | 
														
															   if ((strstr(contentsString.c_str(), "ui_") != NULL) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1804,7 +1804,7 @@ void cmQtAutoGenerators::ParseForUic(const std::string& absFilename, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // finding the correct header, so we need to remove the ui_ part 
														 | 
														
														 | 
														
															       // finding the correct header, so we need to remove the ui_ part 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       basename = basename.substr(3); 
														 | 
														
														 | 
														
															       basename = basename.substr(3); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      includedUis[absPath] = basename; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      includedUis[realName] = basename; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															       matchOffset += uiIncludeRegExp.end(); 
														 | 
														
														 | 
														
															       matchOffset += uiIncludeRegExp.end(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } while(uiIncludeRegExp.find(contentsString.c_str() + matchOffset)); 
														 | 
														
														 | 
														
															       } while(uiIncludeRegExp.find(contentsString.c_str() + matchOffset)); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1960,7 +1960,7 @@ bool cmQtAutoGenerators::GenerateMoc(const std::string& sourceFile, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   return false; 
														 | 
														
														 | 
														
															   return false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-bool cmQtAutoGenerators::GenerateUi(const std::string& path, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+bool cmQtAutoGenerators::GenerateUi(const std::string& realName, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                     const std::string& uiFileName) 
														 | 
														
														 | 
														
															                                     const std::string& uiFileName) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 { 
														 | 
														
														 | 
														
															 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   if (!cmsys::SystemTools::FileExists(this->Builddir.c_str(), false)) 
														 | 
														
														 | 
														
															   if (!cmsys::SystemTools::FileExists(this->Builddir.c_str(), false)) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1968,6 +1968,9 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& path, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     cmsys::SystemTools::MakeDirectory(this->Builddir.c_str()); 
														 | 
														
														 | 
														
															     cmsys::SystemTools::MakeDirectory(this->Builddir.c_str()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  const std::string path = cmsys::SystemTools::GetFilenamePath( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                                      realName.c_str()) + '/'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string ui_output_file = "ui_" + uiFileName + ".h"; 
														 | 
														
														 | 
														
															   std::string ui_output_file = "ui_" + uiFileName + ".h"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string ui_input_file = path + uiFileName + ".ui"; 
														 | 
														
														 | 
														
															   std::string ui_input_file = path + uiFileName + ".ui"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |