Added a window flag to the VCS log browser dialogs to allow to minimize/maximize them on systems that don't add these buttons themself. 5_4_x

Sat, 15 Feb 2014 18:21:59 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 15 Feb 2014 18:21:59 +0100
branch
5_4_x
changeset 3274
f73cb16b37b4
parent 3272
5d937eb378dd
child 3275
186e0b3611b3

Added a window flag to the VCS log browser dialogs to allow to minimize/maximize them on systems that don't add these buttons themself.
(grafted from 075758282fdbd9e6f804afdafe0dff105325f1fc)

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Tue Feb 11 20:04:16 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sat Feb 15 18:21:59 2014 +0100
@@ -54,6 +54,7 @@
         """
         super().__init__(parent)
         self.setupUi(self)
+        self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
         
         if mode == "log":
             self.setWindowTitle(self.trUtf8("Mercurial Log"))
--- a/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py	Tue Feb 11 20:04:16 2014 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py	Sat Feb 15 18:21:59 2014 +0100
@@ -38,6 +38,7 @@
         super().__init__(parent)
         self.setupUi(self)
         SvnDialogMixin.__init__(self)
+        self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
         
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
--- a/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py	Tue Feb 11 20:04:16 2014 +0100
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py	Sat Feb 15 18:21:59 2014 +0100
@@ -34,6 +34,7 @@
         """
         super().__init__(parent)
         self.setupUi(self)
+        self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
         
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)

eric ide

mercurial