Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions meshroom/ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,17 @@ def markdownToHtml(self, md):
return md
return markdown(md)

@Property(QJsonValue, constant=True)
def systemInfo(self):
def _systemInfo(self):
import platform
import sys
return {
'platform': '{} {}'.format(platform.system(), platform.release()),
'python': 'Python {}'.format(sys.version.split(" ")[0])
}

@Property("QVariantList", constant=True)
def licensesModel(self):
systemInfo = Property(QJsonValue, _systemInfo, constant=True)

def _licensesModel(self):
"""
Get info about open-source licenses for the application.
Model provides:
Expand All @@ -316,6 +316,7 @@ def licensesModel(self):
}
]

licensesModel = Property("QVariantList", _licensesModel, constant=True)
recentProjectFilesChanged = Signal()
recentProjectFiles = Property("QVariantList", _recentProjectFiles, notify=recentProjectFilesChanged)

6 changes: 2 additions & 4 deletions meshroom/ui/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,8 @@ def _updateDenseSceneParams(self):
self._undistortedImagePath = os.path.join(self._activeNode_PrepareDenseScene.node.output.value, filename)
self.denseSceneParamsChanged.emit()

@Property(type=QObject, constant=True)
def attribute(self):
""" Get the underlying Viewpoint attribute wrapped by this Viewpoint. """
return self._viewpoint
# Get the underlying Viewpoint attribute wrapped by this Viewpoint.
attribute = Property(QObject, lambda self: self._viewpoint, constant=True)

@Property(type="QVariant", notify=initialParamsChanged)
def initialIntrinsics(self):
Expand Down