From 36fad1120f98d52df78f70b89fef9108c344d5c3 Mon Sep 17 00:00:00 2001 From: waaake Date: Thu, 28 Nov 2024 09:51:21 +0530 Subject: [PATCH] [ui] Qt6 Compatibility: Updated Plugin Manager Components to work with Qt6 --- meshroom/ui/plugins.py | 2 +- meshroom/ui/qml/Application.qml | 2 +- meshroom/ui/qml/GraphEditor/PluginManager.qml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/meshroom/ui/plugins.py b/meshroom/ui/plugins.py index e2e5ff7786..1642eda770 100644 --- a/meshroom/ui/plugins.py +++ b/meshroom/ui/plugins.py @@ -1,7 +1,7 @@ """ UI Component for the Plugin System. """ # Qt -from PySide2.QtCore import Slot, QObject, Property, Signal +from PySide6.QtCore import Slot, QObject, Property, Signal # Internal from meshroom.core import pluginManager diff --git a/meshroom/ui/qml/Application.qml b/meshroom/ui/qml/Application.qml index d4f220f195..8ee988dacd 100644 --- a/meshroom/ui/qml/Application.qml +++ b/meshroom/ui/qml/Application.qml @@ -439,7 +439,7 @@ Page { uigraph: _reconstruction // When a plugin package has been browsed - onBrowsed: { + onBrowsed: (directory) => { // Load Plugins _pluginator.load(Filepath.urlToString(directory)) } diff --git a/meshroom/ui/qml/GraphEditor/PluginManager.qml b/meshroom/ui/qml/GraphEditor/PluginManager.qml index ad0fd2bc97..2b75fe2c11 100644 --- a/meshroom/ui/qml/GraphEditor/PluginManager.qml +++ b/meshroom/ui/qml/GraphEditor/PluginManager.qml @@ -1,6 +1,6 @@ -import QtQuick 2.15 -import QtQuick.Controls 2.15 -import QtQuick.Layouts 1.11 +import QtQuick +import QtQuick.Controls +import QtQuick.Layouts import Qt.labs.platform 1.0 as Platform import MaterialIcons 2.2 import Controls 1.0