Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4223 from pypeclub/feature/OP-4627_qtpy-in-openpy…
Browse files Browse the repository at this point in the history
…pe-tools

Tools: Use qtpy instead of Qt in standalone tools
  • Loading branch information
iLLiCiTiT authored Dec 16, 2022
2 parents 4f8d03b + 4d98f54 commit 0af6df0
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion openpype/tools/context_dialog/window.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import json

from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui

from openpype import style
from openpype.pipeline import AvalonMongoDB
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/actions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from Qt import QtWidgets, QtGui
from qtpy import QtWidgets, QtGui

from openpype import PLUGINS_DIR
from openpype import style
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtCore
from qtpy import QtCore


ACTION_ROLE = QtCore.Qt.UserRole
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/delegates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import time
from Qt import QtCore, QtWidgets, QtGui
from qtpy import QtCore, QtWidgets, QtGui
from .constants import (
ANIMATION_START_ROLE,
ANIMATION_STATE_ROLE,
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/lib.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from Qt import QtGui
from qtpy import QtGui
import qtawesome
from openpype import resources

Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time

import appdirs
from Qt import QtCore, QtGui
from qtpy import QtCore, QtGui
import qtawesome

from openpype.client import (
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/widgets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
import time
import collections
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui
import qtawesome

from openpype.tools.flickcharm import FlickCharm
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/launcher/window.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
import logging

from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui

from openpype import style
from openpype import resources
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

def main():
import sys
from Qt import QtWidgets
from qtpy import QtWidgets

app = QtWidgets.QApplication([])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
from Qt import QtCore
from qtpy import QtCore


# Item identifier (unique ID - uuid4 is used)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore

from .widgets import (
NameTextEdit,
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pymongo import UpdateOne, DeleteOne

from Qt import QtCore, QtGui
from qtpy import QtCore, QtGui

from openpype.client import (
get_projects,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtCore, QtWidgets
from qtpy import QtCore, QtWidgets


class ComboItemDelegate(QtWidgets.QStyledItemDelegate):
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/style.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from Qt import QtGui
from qtpy import QtGui

import qtawesome
from openpype.tools.utils import paint_image_with_color
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/view.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import collections
from queue import Queue

from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui

from openpype.client import get_project
from .delegates import (
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
get_warning_pixmap
)

from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui


class NameTextEdit(QtWidgets.QLineEdit):
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/window.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui

from openpype import resources
from openpype.style import load_stylesheet
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import signal

from bson.objectid import ObjectId
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui

from openpype.client import get_asset_by_id

Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/widgets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtCore
from qtpy import QtCore

HelpRole = QtCore.Qt.UserRole + 2
FamilyRole = QtCore.Qt.UserRole + 3
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/widgets/model_asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import collections

from Qt import QtCore, QtGui
from qtpy import QtCore, QtGui
import qtawesome

from openpype.client import get_assets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtCore
from qtpy import QtCore


class ExactMatchesFilterProxyModel(QtCore.QSortFilterProxyModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Qt import QtCore
import re
from qtpy import QtCore


class RecursiveSortFilterProxyModel(QtCore.QSortFilterProxyModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtCore
from qtpy import QtCore
import qtawesome

from openpype.style import get_default_entity_icon_color
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/widgets/model_tree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtCore
from qtpy import QtCore
from . import Node


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore


class DeselectableTreeView(QtWidgets.QTreeView):
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/widgets/widget_asset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import contextlib
from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore
import qtawesome

from openpype.client import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from Qt import QtCore, QtGui, QtWidgets
from qtpy import QtCore, QtGui, QtWidgets
from .resources import get_resource


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import random
import string

from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore

from openpype.pipeline import legacy_io
from openpype.lib import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtWidgets
from qtpy import QtWidgets


class ComponentsList(QtWidgets.QTableWidget):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui


class DropEmpty(QtWidgets.QWidget):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import clique
import subprocess
import openpype.lib
from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore
from . import DropEmpty, ComponentsList, ComponentItem


Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/widgets/widget_family.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re

from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore

from openpype.client import (
get_asset_by_name,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import six
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui
import qtawesome
from . import FamilyRole, PluginRole

Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/standalonepublish/widgets/widget_shadow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore, QtGui


class ShadowWidget(QtWidgets.QWidget):
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/stdout_broker/window.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
import collections

from Qt import QtWidgets
from qtpy import QtWidgets

from openpype import style

Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/tray/pype_info_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import collections

from Qt import QtCore, QtGui, QtWidgets
from qtpy import QtCore, QtGui, QtWidgets

from openpype import style
from openpype import resources
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/tray/pype_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import platform

from Qt import QtCore, QtGui, QtWidgets
from qtpy import QtCore, QtGui, QtWidgets

import openpype.version
from openpype import resources, style
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/traypublisher/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import platform

from Qt import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore
import qtawesome
import appdirs

Expand Down

0 comments on commit 0af6df0

Please sign in to comment.