--- a/Debugger/EditBreakpointDialog.py Sun Mar 30 22:00:14 2014 +0200 +++ b/Debugger/EditBreakpointDialog.py Thu Apr 03 23:05:31 2014 +0200 @@ -20,6 +20,7 @@ from .Ui_EditBreakpointDialog import Ui_EditBreakpointDialog import Utilities +import UI.PixmapCache class EditBreakpointDialog(QDialog, Ui_EditBreakpointDialog): @@ -49,6 +50,8 @@ self.setObjectName(name) self.setModal(modal) + self.fileButton.setIcon(UI.PixmapCache.getIcon("open.png")) + self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) self.filenameCompleter = E5FileCompleter(self.filenameCombo) @@ -87,7 +90,7 @@ self.linenoSpinBox.setEnabled(False) self.conditionCombo.setFocus() else: - self.setWindowTitle(self.trUtf8("Add Breakpoint")) + self.setWindowTitle(self.tr("Add Breakpoint")) # set the filename if fn is None: fn = "" @@ -112,6 +115,9 @@ if not fn: self.okButton.setEnabled(False) + msh = self.minimumSizeHint() + self.resize(max(self.width(), msh.width()), msh.height()) + @pyqtSlot() def on_fileButton_clicked(self): """ @@ -119,7 +125,7 @@ """ file = E5FileDialog.getOpenFileName( self, - self.trUtf8("Select filename of the breakpoint"), + self.tr("Select filename of the breakpoint"), self.filenameCombo.currentText(), "")