249 """ |
249 """ |
250 execfile = QFileDialog.getOpenFileName( |
250 execfile = QFileDialog.getOpenFileName( |
251 self, |
251 self, |
252 self.trUtf8("Select executable"), |
252 self.trUtf8("Select executable"), |
253 self.executableEdit.text(), |
253 self.executableEdit.text(), |
254 "") |
254 "", |
|
255 QFileDialog.DontUseNativeDialog) |
255 if execfile: |
256 if execfile: |
256 execfile = Utilities.toNativeSeparators(execfile) |
257 execfile = Utilities.toNativeSeparators(execfile) |
257 if not Utilities.isinpath(execfile): |
258 if not Utilities.isinpath(execfile): |
258 E5MessageBox.critical(self, |
259 E5MessageBox.critical(self, |
259 self.trUtf8("Select executable"), |
260 self.trUtf8("Select executable"), |
270 """ |
271 """ |
271 icon = QFileDialog.getOpenFileName( |
272 icon = QFileDialog.getOpenFileName( |
272 self, |
273 self, |
273 self.trUtf8("Select icon file"), |
274 self.trUtf8("Select icon file"), |
274 self.iconEdit.text(), |
275 self.iconEdit.text(), |
275 self.trUtf8("Icon files (*.png)")) |
276 self.trUtf8("Icon files (*.png)"), |
|
277 QFileDialog.DontUseNativeDialog) |
276 if icon: |
278 if icon: |
277 self.iconEdit.setText(icon) |
279 self.iconEdit.setText(icon) |
278 |
280 |
279 def on_toolsList_currentRowChanged(self, row): |
281 def on_toolsList_currentRowChanged(self, row): |
280 """ |
282 """ |