Пример #1
0
 /// <summary>This is to support Qt5 and Qt5 development at the same time. Default editor values in registry are changed so that Qt4 add-in is default and Qt5 values are set only when this add-in is loaded.</summary>
 /// <param term='startup'>Is this Qt5 add-in starting (true) or closing (false).</param>
 private void UpdateDefaultEditors(bool startup)
 {
     // This add-in starts so just setting correct default editor
     // registry values for .qrc, .ts and .ui extensions.
     if (startup)
     {
         Qt4DefaultEditors qt4 = new Qt4DefaultEditors();
         qt4.WriteRegistryValues();
     }
     // This add-in closing so checking...
     else
     {
         // ...if also Qt5 addin is installed and setting correct
         // registry values for it
         Qt5DefaultEditors qt5 = new Qt5DefaultEditors();
         if (qt5.IsAddinInstalled())
         {
             qt5.WriteRegistryValues();
         }
     }
 }
Пример #2
0
 /// <summary>This is to support Qt5 and Qt5 development at the same time. Default editor values in registry are changed so that Qt4 add-in is default and Qt5 values are set only when this add-in is loaded.</summary>
 /// <param term='startup'>Is this Qt5 add-in starting (true) or closing (false).</param>
 private void UpdateDefaultEditors(bool startup)
 {
     // This add-in starts so just setting correct default editor
     // registry values for .qrc, .ts and .ui extensions.
     if (startup)
     {
         Qt4DefaultEditors qt4 = new Qt4DefaultEditors();
         qt4.WriteRegistryValues();
     }
     // This add-in closing so checking...
     else
     {
         // ...if also Qt5 addin is installed and setting correct
         // registry values for it
         Qt5DefaultEditors qt5 = new Qt5DefaultEditors();
         if (qt5.IsAddinInstalled())
         {
             qt5.WriteRegistryValues();
         }
     }
 }