AicsKnowledgeBase_client/AicsKnowledgeBase/qml/global/AppSettings.qml

24 lines
447 B
QML
Raw Normal View History

2023-06-24 18:02:21 +08:00
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
}
}