2021-10-12 18:26:02 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
|
|
|
QtObject {
|
2021-10-17 10:44:21 +00:00
|
|
|
property var loginModuleInst: loginModule
|
|
|
|
property var currentAccount: loginModuleInst.selectedAccount
|
2021-10-12 18:26:02 +00:00
|
|
|
|
|
|
|
function login(password) {
|
2021-10-17 10:44:21 +00:00
|
|
|
loginModuleInst.login(password)
|
2021-10-12 18:26:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function setCurrentAccount(index) {
|
2021-10-17 10:44:21 +00:00
|
|
|
loginModuleInst.setSelectedAccountByIndex(index)
|
2021-10-12 18:26:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function rowCount() {
|
2021-10-17 10:44:21 +00:00
|
|
|
return loginModuleInst.accountsModel.rowCount()
|
2021-10-12 18:26:02 +00:00
|
|
|
}
|
|
|
|
}
|