diff -r 96232974dcdb -r 645c12de6b0c Project/SpellingPropertiesDialog.py --- a/Project/SpellingPropertiesDialog.py Sun Mar 30 22:00:14 2014 +0200 +++ b/Project/SpellingPropertiesDialog.py Thu Apr 03 23:05:31 2014 +0200 @@ -21,6 +21,7 @@ import Utilities import Preferences +import UI.PixmapCache class SpellingPropertiesDialog(QDialog, Ui_SpellingPropertiesDialog): @@ -38,6 +39,9 @@ super(SpellingPropertiesDialog, self).__init__(parent) self.setupUi(self) + self.pwlButton.setIcon(UI.PixmapCache.getIcon("open.png")) + self.pelButton.setIcon(UI.PixmapCache.getIcon("open.png")) + self.project = project self.parent = parent @@ -45,12 +49,15 @@ self.pelCompleter = E5FileCompleter(self.pelEdit) from QScintilla.SpellChecker import SpellChecker - self.spellingComboBox.addItem(self.trUtf8("<default>")) + self.spellingComboBox.addItem(self.tr("<default>")) self.spellingComboBox.addItems( sorted(SpellChecker.getAvailableLanguages())) if not new: self.initDialog() + + msh = self.minimumSizeHint() + self.resize(max(self.width(), msh.width()), msh.height()) def initDialog(self): """ @@ -81,9 +88,9 @@ os.path.join(self.project.ppath, pwl)) file = E5FileDialog.getOpenFileName( self, - self.trUtf8("Select project word list"), + self.tr("Select project word list"), pwl, - self.trUtf8("Dictionary File (*.dic);;All Files (*)")) + self.tr("Dictionary File (*.dic);;All Files (*)")) if file: self.pwlEdit.setText(self.project.getRelativePath( @@ -102,9 +109,9 @@ os.path.join(self.project.ppath, pel)) file = E5FileDialog.getOpenFileName( self, - self.trUtf8("Select project exclude list"), + self.tr("Select project exclude list"), pel, - self.trUtf8("Dictionary File (*.dic);;All Files (*)")) + self.tr("Dictionary File (*.dic);;All Files (*)")) if file: self.pelEdit.setText(self.project.getRelativePath(