]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix default insert mode for preferences
authorabd <abd@opencascade.com>
Mon, 6 Aug 2007 12:54:43 +0000 (12:54 +0000)
committerabd <abd@opencascade.com>
Mon, 6 Aug 2007 12:54:43 +0000 (12:54 +0000)
src/LightApp/LightApp_Module.h

index 1911a32ff2177559fa7f40ba2c7bc626699b30bb..0883d2120d9e83fc1a22070e718b36e9fc5771d9 100644 (file)
 #define LIGHTAPP_MODULE_H
 
 #include "LightApp.h"
+#include "LightApp_Preferences.h"
 #include <CAM_Module.h>
 
 class LightApp_Application;
-class LightApp_Preferences;
 class LightApp_Selection;
 class LightApp_Operation;
 class LightApp_SwitchOp;
@@ -114,7 +114,7 @@ protected:
   virtual CAM_DataModel*              createDataModel();
 
   int                                 addPreference( const QString& label );
-  int                                 addPreference( const QString& label, const int pId, const int = -1,
+  int                                 addPreference( const QString& label, const int pId, const int = LightApp_Preferences::Auto,
                                                     const QString& section = QString::null,
                                                     const QString& param = QString::null );
   QVariant                            preferenceProperty( const int, const QString& ) const;