/// <summary> /// Removes a qt module from the project /// </summary> /// <param name="module">the module to remove /// see QtModules.ModuleIdByName() /// </param> public void RemoveModule(string module) { if (qtPro == null) { throw new QtVSException(commonError); } qtPro.RemoveModule(GetQtModuleFromName(module)); }
private void SaveModules() { qtProject = QtProject.Create(project); for (int i = 0; i < moduleMap.Count; ++i) { ModuleMapItem item = moduleMap[i]; bool isModuleChecked = item.checkbox.Checked; if (isModuleChecked != item.initialValue) { if (isModuleChecked) { qtProject.AddModule(item.moduleId); } else { qtProject.RemoveModule(item.moduleId); } } } }