PersistentObject.qml 261 B

1234567891011121314151617
  1. import QtQuick 1.0
  2. import "PersistentObjectStore.js" as Store
  3. QtObject {
  4. id: settings
  5. objectName: "default"
  6. Component.onCompleted: {
  7. Store.initialize();
  8. Store.load(settings);
  9. }
  10. Component.onDestruction: {
  11. Store.save(settings);
  12. }
  13. }