mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
load stylesheet for completer individially
This commit is contained in:
parent
cdefb10b5b
commit
648f33f4fd
1 changed files with 7 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ from openpype.lib import (
|
|||
PROJECT_NAME_ALLOWED_SYMBOLS,
|
||||
PROJECT_NAME_REGEX
|
||||
)
|
||||
from .style import load_stylesheet
|
||||
from avalon.api import AvalonMongoDB
|
||||
|
||||
from Qt import QtWidgets, QtCore
|
||||
|
|
@ -57,6 +58,12 @@ class FilterComboBox(QtWidgets.QComboBox):
|
|||
)
|
||||
self.setCompleter(completer)
|
||||
|
||||
completer_view = completer.popup()
|
||||
completer_view.setObjectName("CompleterView")
|
||||
delegate = QtWidgets.QStyledItemDelegate(completer_view)
|
||||
completer_view.setItemDelegate(delegate)
|
||||
completer_view.setStyleSheet(load_stylesheet())
|
||||
|
||||
self.lineEdit().textEdited.connect(
|
||||
filter_proxy_model.setFilterFixedString
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue