Index: sources/view/settings/VSettings.h =================================================================== diff -u -ra82ee4f326b26c4369f1306f867edc1bca6dabbe -ra04fd119778f0483cba5139a11e3c6bad7f2324a --- sources/view/settings/VSettings.h (.../VSettings.h) (revision a82ee4f326b26c4369f1306f867edc1bca6dabbe) +++ sources/view/settings/VSettings.h (.../VSettings.h) (revision a04fd119778f0483cba5139a11e3c6bad7f2324a) @@ -31,17 +31,19 @@ TRIGGER ( bool , adjustment , 0 ) - // Don't use QVariantHash, qml don't like it and won't show the values. + // TODO: This view needs modification and it needs to isolate the settings and have its own specific properties, not the complete settings exposed to QML and let QML access it. + // Don't use QVariantHash, qml doesn't like it and won't show the values, *** and not even complains/errors ***. CONSTANT(QString , groupFormat , "%1^%2" ) PROPERTY(bool , initialized , false ) PROPERTY(QStringList , categorys , {} ) PROPERTY(QVariantMap , settings , {} ) PROPERTY(QVariantMap , data , {} ) + SETTINGS(QString , servicePass ,"123", "Settings/System", "Service", "Password") + SETTINGS(quint8 , alarmVolume , 100 , "Settings/System", "Alarm" , "Volume" ) + VIEW_DEC(VSettings, SettingsData) -public slots: - void doSave(const QString &vCategory, const QString &vGroup, const QString &vKey, const QString &vValue); }; }