diff -r 960d1e63f802 -r fc4f447ab637 Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py --- a/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py Thu Dec 03 19:11:22 2015 +0100 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py Sat Dec 05 12:23:39 2015 +0100 @@ -9,17 +9,12 @@ from __future__ import unicode_literals -from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QDialog -from E5Gui.E5Completers import E5FileCompleter -from E5Gui import E5FileDialog +from E5Gui.E5PathPicker import E5PathPickerModes from .Ui_SvnPropSetDialog import Ui_SvnPropSetDialog -import Utilities -import UI.PixmapCache - class SvnPropSetDialog(QDialog, Ui_SvnPropSetDialog): """ @@ -34,23 +29,7 @@ super(SvnPropSetDialog, self).__init__(parent) self.setupUi(self) - self.fileButton.setIcon(UI.PixmapCache.getIcon("open.png")) - - self.propFileCompleter = E5FileCompleter(self.propFileEdit) - - @pyqtSlot() - def on_fileButton_clicked(self): - """ - Private slot called by pressing the file selection button. - """ - fn = E5FileDialog.getOpenFileName( - self, - self.tr("Select file for property"), - self.propFileEdit.text(), - "") - - if fn: - self.propFileEdit.setText(Utilities.toNativeSeparators(fn)) + self.propFilePicker.setMode(E5PathPickerModes.OpenFileMode) def getData(self): """ @@ -61,7 +40,7 @@ or the selected filename. (string, boolean, string) """ if self.fileRadioButton.isChecked(): - return (self.propNameEdit.text(), True, self.propFileEdit.text()) + return (self.propNameEdit.text(), True, self.propFilePicker.text()) else: return (self.propNameEdit.text(), False, self.propTextEdit.toPlainText())