AicsKnowledgeBase_client/AicsKnowledgeBase/qml/global/AppSettings.qml

24 lines
447 B
QML

import QtQuick
import Qt.labs.settings
import QtQuick.Controls
QtObject {
id: settings
Settings {
id: registry
property string rememberedCookie
}
property string cookie
property int userId
property string userName
property int userLevel
Component.onDestruction: {
cookie = registry.rememberedCookie
}
function rememberCookie() {
registry.rememberedCookie = cookie
}
}