示例#1
0
 /// <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));
 }
示例#2
0
 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);
             }
         }
     }
 }