Skip to content

Commit 3e2185b

Browse files
committed
[ui] Qt6 Compatibility: Updated Plugin Manager Components to work with Qt6
1 parent a8e569c commit 3e2185b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

meshroom/core/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# coding:utf-8
33
# Types
44
from __future__ import annotations
5-
from typing import List
5+
from typing import Callable, List, Optional
66

77
import atexit
88
import copy

meshroom/ui/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" UI Component for the Plugin System.
22
"""
33
# Qt
4-
from PySide2.QtCore import Slot, QObject, Property, Signal
4+
from PySide6.QtCore import Slot, QObject, Property, Signal
55

66
# Internal
77
from meshroom.core import pluginManager

meshroom/ui/qml/Application.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ Page {
439439
uigraph: _reconstruction
440440

441441
// When a plugin package has been browsed
442-
onBrowsed: {
442+
onBrowsed: (directory) => {
443443
// Load Plugins
444444
_pluginator.load(Filepath.urlToString(directory))
445445
}

meshroom/ui/qml/GraphEditor/PluginManager.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import QtQuick 2.15
2-
import QtQuick.Controls 2.15
3-
import QtQuick.Layouts 1.11
1+
import QtQuick
2+
import QtQuick.Controls
3+
import QtQuick.Layouts
44
import Qt.labs.platform 1.0 as Platform
55
import MaterialIcons 2.2
66
import Controls 1.0

0 commit comments

Comments
 (0)