Merge Backend and QMLModels
Backend.models.accounts → Backend.accounts Backend.models.roomEvents → Backend.roomEvents
This commit is contained in:
@@ -4,4 +4,3 @@
|
||||
from . import items
|
||||
from .list_model import ListModel
|
||||
from .list_model_map import ListModelMap
|
||||
from .qml_models import QMLModels
|
||||
|
@@ -1,26 +0,0 @@
|
||||
# Copyright 2019 miruka
|
||||
# This file is part of harmonyqml, licensed under GPLv3.
|
||||
|
||||
from typing import Deque
|
||||
|
||||
from PyQt5.QtCore import QObject, pyqtProperty
|
||||
|
||||
from .list_model import ListModel
|
||||
from .list_model_map import ListModelMap
|
||||
|
||||
|
||||
class QMLModels(QObject):
|
||||
def __init__(self, parent: QObject) -> None:
|
||||
super().__init__(parent)
|
||||
self._accounts: ListModel = ListModel(parent=parent)
|
||||
self._room_events: ListModelMap = ListModelMap(Deque, parent)
|
||||
|
||||
|
||||
@pyqtProperty(ListModel, constant=True)
|
||||
def accounts(self):
|
||||
return self._accounts
|
||||
|
||||
|
||||
@pyqtProperty("QVariant", constant=True)
|
||||
def roomEvents(self):
|
||||
return self._room_events
|
Reference in New Issue
Block a user