added style for multiselection combobox

This commit is contained in:
iLLiCiTiT 2020-09-22 16:59:08 +02:00
parent 13576aeedc
commit 016ea3146b
2 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,10 @@ QPushButton[btn-type="expand-toggle"] {
font-weight: bold;
}
#MultiSelectionComboBox {
font-size: 12px;
}
#DictKey[state="studio"] {border-color: #bfccd6;}
#DictKey[state="modified"] {border-color: #137cbd;}
#DictKey[state="overriden"] {border-color: #00f;}

View file

@ -143,6 +143,7 @@ class MultiSelectionComboBox(QtWidgets.QComboBox):
self, parent=None, placeholder="", separator=", ", **kwargs
):
super(MultiSelectionComboBox, self).__init__(parent=parent, **kwargs)
self.setObjectName("MultiSelectionComboBox")
self.setFocusPolicy(QtCore.Qt.StrongFocus)
self._popup_is_shown = False