int cacheGr = addPreference( tr( "VISU_3DCACHE_PROPS" ), cacheTab );
setPreferenceProperty( cacheGr, "columns", 1 );
+ int memory_mode = addPreference( tr( "VISU_MEMORY_MODE" ), cacheGr,
+ LightApp_Preferences::Selector, "VISU", "cache_memory_mode" );
+
modes.clear();
modes.append( tr( "VISU_MINIMAL" ) );
modes.append( tr( "VISU_LIMITED" ) );
+ setPreferenceProperty( memory_mode, "strings", modes );
+
indices.clear();
indices.append( 0 );
- indices.append( 1 );
- setPreferenceProperty( mode, "strings", modes );
- setPreferenceProperty( mode, "indexes", indices );
-
- int memory_mode = addPreference( tr( "VISU_MEMORY_MODE" ), cacheGr,
- LightApp_Preferences::Selector, "VISU", "cache_memory_mode" );
- setPreferenceProperty( memory_mode, "strings", modes );
+ indices.append( 1 );
setPreferenceProperty( memory_mode, "indexes", indices );
int memory_limit = addPreference( tr( "VISU_MEMORY_LIMIT" ), cacheGr,