- Turkish language strings updated

- set some policy rules back the way they were for the combo boxes in Geometry Object properties
This commit is contained in:
Marius Stanciu
2020-11-05 20:17:02 +02:00
committed by Marius Stanciu
parent a6a7e5edcc
commit 1d88fd0d4c
5 changed files with 19 additions and 16 deletions

View File

@@ -2103,7 +2103,7 @@ class FCPlainTextAreaExtended(QtWidgets.QPlainTextEdit):
class FCComboBox(QtWidgets.QComboBox):
def __init__(self, parent=None, callback=None):
def __init__(self, parent=None, callback=None, policy=True):
super(FCComboBox, self).__init__(parent)
self.setFocusPolicy(QtCore.Qt.StrongFocus)
self.view = self.view()
@@ -2113,8 +2113,9 @@ class FCComboBox(QtWidgets.QComboBox):
self._set_last = False
self._obj_type = None
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
self.setSizePolicy(sizePolicy)
if policy is True:
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
self.setSizePolicy(sizePolicy)
# the callback() will be called on customcontextmenu event and will be be passed 2 parameters:
# pos = mouse right click click position