global loader plugins are using qtpy

This commit is contained in:
Jakub Trllo 2022-12-21 13:54:00 +01:00
parent ddba1741da
commit e51453466c
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ class CopyFile(load.LoaderPlugin):
@staticmethod
def copy_file_to_clipboard(path):
from Qt import QtCore, QtWidgets
from qtpy import QtCore, QtWidgets
clipboard = QtWidgets.QApplication.clipboard()
assert clipboard, "Must have running QApplication instance"

View file

@ -19,7 +19,7 @@ class CopyFilePath(load.LoaderPlugin):
@staticmethod
def copy_path_to_clipboard(path):
from Qt import QtWidgets
from qtpy import QtWidgets
clipboard = QtWidgets.QApplication.clipboard()
assert clipboard, "Must have running QApplication instance"

View file

@ -5,7 +5,7 @@ import uuid
import clique
from pymongo import UpdateOne
import qargparse
from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore
from openpype import style
from openpype.client import get_versions, get_representations

View file

@ -1,7 +1,7 @@
import copy
from collections import defaultdict
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui
from openpype.client import get_representations
from openpype.pipeline import load, Anatomy