mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use qtpy in style
This commit is contained in:
parent
3468a285c1
commit
5361cfa9a5
3 changed files with 5 additions and 5 deletions
|
|
@ -157,7 +157,7 @@ def _load_stylesheet():
|
|||
|
||||
def _load_font():
|
||||
"""Load and register fonts into Qt application."""
|
||||
from Qt import QtGui
|
||||
from qtpy import QtGui
|
||||
|
||||
# Check if font ids are still loaded
|
||||
if _Cache.font_ids is not None:
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ def create_qcolor(*args):
|
|||
*args (tuple): It is possible to pass initialization arguments for
|
||||
Qcolor.
|
||||
"""
|
||||
from Qt import QtGui
|
||||
from qtpy import QtGui
|
||||
|
||||
return QtGui.QColor(*args)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import Qt
|
||||
import qtpy
|
||||
|
||||
|
||||
initialized = False
|
||||
resources = None
|
||||
if Qt.__binding__ == "PySide2":
|
||||
if qtpy.API == "pyside2":
|
||||
from . import pyside2_resources as resources
|
||||
elif Qt.__binding__ == "PyQt5":
|
||||
elif qtpy.API == "pyqt5":
|
||||
from . import pyqt5_resources as resources
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue