Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3366
6084bb3c3911
child 3656
441956d8fce5
--- a/Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -18,6 +18,7 @@
 from .Ui_SvnCommandDialog import Ui_SvnCommandDialog
 
 import Utilities
+import UI.PixmapCache
 
 
 class SvnCommandDialog(QDialog, Ui_SvnCommandDialog):
@@ -40,6 +41,8 @@
         super(SvnCommandDialog, self).__init__(parent)
         self.setupUi(self)
         
+        self.dirButton.setIcon(UI.PixmapCache.getIcon("open.png"))
+        
         self.workdirCompleter = E5DirCompleter(self.workdirCombo)
         
         self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)
@@ -61,6 +64,9 @@
             t += Utilities.getPercentReplacementHelp()
             self.commandCombo.setWhatsThis(t)
         
+        msh = self.minimumSizeHint()
+        self.resize(max(self.width(), msh.width()), msh.height())
+        
     @pyqtSlot()
     def on_dirButton_clicked(self):
         """
@@ -71,7 +77,7 @@
             cwd = self.projectDirLabel.text()
         d = E5FileDialog.getExistingDirectory(
             self,
-            self.trUtf8("Working directory"),
+            self.tr("Working directory"),
             cwd,
             E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
         

eric ide

mercurial