Reorder QML files to follow coding conventions
https://doc.qt.io/qt-5/qml-codingconventions.html#qml-object-declarations
This commit is contained in:
@@ -7,12 +7,10 @@ import "../.."
|
||||
QtObject {
|
||||
signal deviceUpdateSignal(string forAccount)
|
||||
|
||||
|
||||
function onExitRequested(exitCode) {
|
||||
Qt.exit(exitCode)
|
||||
}
|
||||
|
||||
|
||||
function onAlertRequested(highImportance) {
|
||||
const msec =
|
||||
highImportance ?
|
||||
@@ -24,7 +22,6 @@ QtObject {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function onCoroutineDone(uuid, result, error, traceback) {
|
||||
const onSuccess = Globals.pendingCoroutines[uuid].onSuccess
|
||||
const onError = Globals.pendingCoroutines[uuid].onError
|
||||
@@ -48,14 +45,12 @@ QtObject {
|
||||
if (onSuccess) onSuccess(result)
|
||||
}
|
||||
|
||||
|
||||
function onLoopException(message, error, traceback) {
|
||||
// No need to log these here, the asyncio exception handler does it
|
||||
const type = py.getattr(py.getattr(error, "__class__"), "__name__")
|
||||
utils.showError(type, traceback, message)
|
||||
}
|
||||
|
||||
|
||||
function onModelItemSet(syncId, indexThen, indexNow, changedFields){
|
||||
if (indexThen === undefined) {
|
||||
// print("insert", syncId, indexThen, indexNow,
|
||||
@@ -74,19 +69,16 @@ QtObject {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function onModelItemDeleted(syncId, index, count=1) {
|
||||
// print("delete", syncId, index, count)
|
||||
ModelStore.get(syncId).remove(index, count)
|
||||
}
|
||||
|
||||
|
||||
function onModelCleared(syncId) {
|
||||
// print("clear", syncId)
|
||||
ModelStore.get(syncId).clear()
|
||||
}
|
||||
|
||||
|
||||
function onDevicesUpdated(forAccount) {
|
||||
deviceUpdateSignal(forAccount)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user