3951 @param pos character position to display (int) |
3951 @param pos character position to display (int) |
3952 @param encoding encoding name to display (string) |
3952 @param encoding encoding name to display (string) |
3953 @param language language to display (string) |
3953 @param language language to display (string) |
3954 @param eol eol indicator to display (string) |
3954 @param eol eol indicator to display (string) |
3955 """ |
3955 """ |
3956 if fn is None: |
3956 if not fn: |
3957 fn = '' |
3957 fn = '' |
3958 writ = ' ' |
3958 writ = ' ' |
3959 else: |
3959 else: |
3960 if QFileInfo(fn).isWritable(): |
3960 if QFileInfo(fn).isWritable(): |
3961 writ = ' rw' |
3961 writ = 'rw' |
3962 else: |
3962 else: |
3963 writ = ' ro' |
3963 writ = 'ro' |
3964 self.sbWritable.setText(writ) |
3964 self.sbWritable.setText(writ) |
3965 self.sbFile.setTextPath(QApplication.translate('ViewManager', 'File: {0}'), fn) |
3965 self.sbFile.setTextPath(QApplication.translate('ViewManager', 'File: {0}'), fn) |
3966 |
3966 |
3967 if line is None: |
3967 if line is None: |
3968 line = '' |
3968 line = '' |