diff -r 9487d3fbb71e -r 682d0f6a6074 E5Gui/E5PathPicker.py --- a/E5Gui/E5PathPicker.py Sun Oct 16 11:44:20 2016 +0200 +++ b/E5Gui/E5PathPicker.py Sun Oct 16 12:15:18 2016 +0200 @@ -586,6 +586,31 @@ self._setEditorText(path) self.pathSelected.emit(path) + def setReadOnly(self, readOnly): + """ + Public method to set the path picker to read only mode. + + @param readOnly flag indicating read only mode + @type bool + """ + try: + self._editor.setReadOnly(readOnly) + except AttributeError: + self._editor.setEditable(not readOnly) + self.setPickerEnabled(not readOnly) + + def isReadOnly(self): + """ + Public method to check the path picker for read only mode. + + @return flg indicating read only mode + @rtype bool + """ + try: + return self._editor.isReadOnly() + except AttributeError: + return not self._editor.isEditable() + ################################################################## ## Methods below emulate some of the QComboBox API ##################################################################