mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 05:09:37 +08:00
23 lines
676 B
Python
23 lines
676 B
Python
# Copyright (c) 2025 UltiMaker
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from typing import List
|
|
|
|
from PyQt6.QtCore import QObject, pyqtProperty
|
|
|
|
from cura import CuraVersion
|
|
from .OpenSourceDependency import OpenSourceDependency
|
|
|
|
|
|
class OpenSourceDependenciesModel(QObject):
|
|
|
|
def __init__(self, parent=None):
|
|
super().__init__(parent)
|
|
self._dependencies = []
|
|
|
|
for name, data in CuraVersion.DependenciesDescriptions.items():
|
|
self._dependencies.append(OpenSourceDependency(name, data))
|
|
|
|
@pyqtProperty(list, constant=True)
|
|
def dependencies(self) -> List[OpenSourceDependency]:
|
|
return self._dependencies |