2021-10-12 18:26:02 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
|
|
|
QtObject {
|
2021-10-15 12:18:09 +00:00
|
|
|
property var loginModul: loginModule
|
|
|
|
property var currentAccount: loginModule.selectedAccount
|
2021-10-12 18:26:02 +00:00
|
|
|
|
|
|
|
function login(password) {
|
2021-10-15 12:18:09 +00:00
|
|
|
loginModul.login(password)
|
2021-10-12 18:26:02 +00:00
|
|
|
}
|
|
|
|
|
2021-10-16 19:03:01 +00:00
|
|
|
// function tryToObtainPassword() {
|
|
|
|
// loginModel.tryToObtainPassword()
|
|
|
|
// }
|
2021-10-12 18:26:02 +00:00
|
|
|
|
|
|
|
function setCurrentAccount(index) {
|
2021-10-15 12:18:09 +00:00
|
|
|
loginModul.setSelectedAccountByIndex(index)
|
2021-10-12 18:26:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function rowCount() {
|
2021-10-15 12:18:09 +00:00
|
|
|
return loginModul.accountsModel.rowCount()
|
2021-10-12 18:26:02 +00:00
|
|
|
}
|
|
|
|
}
|