/// <summary> /// Adds a file to the project /// </summary> /// <param name="file">file (result from CopyFileToProjectFolder)</param> /// <param name="filter">the filter /// can be one of the following: QT_SOURCE_FILTER, QT_HEADER_FILTER, /// QT_FORM_FILTER, QT_RESOURCE_FILTER, QT_TRANSLATION_FILTER, QT_OTHER_FILTER</param> public VCFile AddFileToProject(string file, string filter) { if (qtPro == null) { throw new QtVSException(commonError); } qtPro.AdjustWhitespace(file); return(qtPro.AddFileToProject(file, GetFakeFilterFromName(filter))); }
public override void ProjectItemFinishedGenerating(ProjectItem projectItem) { ThreadHelper.ThrowIfNotOnUIThread(); QtProject.AdjustWhitespace(Dte, projectItem.Properties.Item("FullPath").Value.ToString()); }