Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:config_groups_config_groups [2009/08/14 18:15]
michael created
dev:config_groups_config_groups [2018/02/07 17:07] (current)
Line 22: Line 22:
  
 Whether you take it upon yourself to do these cleanups or not, please use ConfigGroups.h in any new code.  Also, please feel free to create new ConfigGroups as seems appropriate. ​ For example, when I did the work to make windows remember their positions, I put all window positions into the same ConfigGroup for consistency across the application,​ and easy block copying of the code snippet to make the save/​restore work.  You certainly don't need to feel limited to the ConfigGroups that already exist. Whether you take it upon yourself to do these cleanups or not, please use ConfigGroups.h in any new code.  Also, please feel free to create new ConfigGroups as seems appropriate. ​ For example, when I did the work to make windows remember their positions, I put all window positions into the same ConfigGroup for consistency across the application,​ and easy block copying of the code snippet to make the save/​restore work.  You certainly don't need to feel limited to the ConfigGroups that already exist.
 +
 +**NOTE**: Oh, and you should avoid using spaces in the ConfigGroup strings. ​ Either use underscores (Collapsing_Frame) or run the words together (CollapsingFrame). ​ It is legal to use spaces, but Qt escapes them out, and this makes the config file difficult to read when it becomes necessary to debug it.  "​Collapsing Frame" becomes "​Collapsing%20Frame"​ and I find that extremely irritating, so I would prefer to avoid the problem by leaving spaces (and any other characters which would need to be escaped) out of these strings. ​ Thanks everyone.
  
 
 
dev/config_groups_config_groups.txt ยท Last modified: 2018/02/07 17:07 (external edit)
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki