Skip to content

Commit 6887e7b

Browse files
authored
Merge branch 'develop' into enhancement/bump-required-launcher
2 parents a71d3dd + e02c268 commit 6887e7b

5 files changed

Lines changed: 7 additions & 17 deletions

File tree

client/ayon_core/style/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ QListView::item {
490490
height: 1.0em;
491491
}
492492

493+
QTreeView::item:!enabled {
494+
background: {color:bg-view};
495+
}
496+
493497
QAbstractItemView:disabled{
494498
background: {color:bg-view-disabled};
495499
alternate-background-color: {color:bg-view-alternate-disabled};

client/ayon_core/tools/common_models/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def get_project_entity(self, project_name):
360360
if not project_cache.is_valid:
361361
entity = None
362362
if project_name:
363-
entity = ayon_api.get_project(project_name)
363+
entity = ayon_api.get_rest_project(project_name)
364364
project_cache.update_data(entity)
365365
return project_cache.get_data()
366366

client/ayon_core/tools/loader/ui/folders_widget.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Optional
22

3-
import qtpy
43
from qtpy import QtWidgets, QtCore, QtGui
54

65
from ayon_core.style import get_objected_colors
@@ -13,11 +12,6 @@
1312
)
1413
from ayon_core.tools.utils.folders_widget import FOLDER_ID_ROLE
1514

16-
if qtpy.API == "pyside":
17-
from PySide.QtGui import QStyleOptionViewItemV4
18-
elif qtpy.API == "pyqt4":
19-
from PyQt4.QtGui import QStyleOptionViewItemV4
20-
2115
UNDERLINE_COLORS_ROLE = QtCore.Qt.UserRole + 50
2216

2317

@@ -47,9 +41,6 @@ def sizeHint(self, option, index):
4741

4842
def paint(self, painter, option, index):
4943
"""Replicate painting of an item and draw color bars if needed."""
50-
# Qt4 compat
51-
if qtpy.API in ("pyside", "pyqt4"):
52-
option = QStyleOptionViewItemV4(option)
5344

5445
painter.save()
5546

client/ayon_core/tools/loader/ui/products_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def __init__(self, controller, parent):
196196
products_view.setSelectionMode(
197197
QtWidgets.QAbstractItemView.ExtendedSelection
198198
)
199-
products_view.setAllColumnsShowFocus(True)
199+
products_view.setAllColumnsShowFocus(False)
200200
# TODO - add context menu
201201
products_view.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
202202
products_view.setSortingEnabled(True)

client/ayon_core/tools/utils/models.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import re
22
import logging
33

4-
import qtpy
54
from qtpy import QtCore
65

76
log = logging.getLogger(__name__)
@@ -62,11 +61,7 @@ def setData(self, index, value, role=QtCore.Qt.EditRole):
6261
key = self.Columns[column]
6362
item[key] = value
6463

65-
# passing `list()` for PyQt5 (see PYSIDE-462)
66-
if qtpy.API in ("pyqt4", "pyside"):
67-
self.dataChanged.emit(index, index)
68-
else:
69-
self.dataChanged.emit(index, index, [role])
64+
self.dataChanged.emit(index, index, [role])
7065

7166
# must return true if successful
7267
return True

0 commit comments

Comments
 (0)