12 |
12 |
13 from PyQt4.QtCore import * |
13 from PyQt4.QtCore import * |
14 from PyQt4.QtGui import * |
14 from PyQt4.QtGui import * |
15 |
15 |
16 from E5Gui.E5Completers import E5FileCompleter |
16 from E5Gui.E5Completers import E5FileCompleter |
17 from E5Gui import E5MessageBox |
17 from E5Gui import E5MessageBox, E5FileDialog |
18 |
18 |
19 import UI.PixmapCache |
19 import UI.PixmapCache |
20 |
20 |
21 from .Ui_CompareDialog import Ui_CompareDialog |
21 from .Ui_CompareDialog import Ui_CompareDialog |
22 |
22 |
379 Private slot to display a file selection dialog. |
379 Private slot to display a file selection dialog. |
380 |
380 |
381 @param lineEdit field for the display of the selected filename |
381 @param lineEdit field for the display of the selected filename |
382 (QLineEdit) |
382 (QLineEdit) |
383 """ |
383 """ |
384 filename = QFileDialog.getOpenFileName( |
384 filename = E5FileDialog.getOpenFileName( |
385 self, |
385 self, |
386 self.trUtf8("Select file to compare"), |
386 self.trUtf8("Select file to compare"), |
387 lineEdit.text(), |
387 lineEdit.text(), |
388 "", |
388 "") |
389 QFileDialog.DontUseNativeDialog) |
|
390 |
389 |
391 if filename: |
390 if filename: |
392 lineEdit.setText(Utilities.toNativeSeparators(filename)) |
391 lineEdit.setText(Utilities.toNativeSeparators(filename)) |
393 |
392 |
394 @pyqtSlot() |
393 @pyqtSlot() |