Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgqt: more explicit way to hide QDialog's context help button

`Qt.WindowTitleHint | Qt.WindowSystemMenuHint` implies hiding "help [?]"
button. It works mostly, but it also hides "close [X]" button wrongly on KDE
if `setSizeConstraint(QLayout.SetFixedSize)`.

Changeset 3742ba3390ec

Parent 61ff6bd4fe8e

by Yuya Nishihara

Changes to 3 files · Browse files at 3742ba3390ec Showing diff from parent 61ff6bd4fe8e Diff from another changeset...

 
23
24
25
26
27
 
 
28
29
30
 
23
24
25
 
 
26
27
28
29
30
@@ -23,8 +23,8 @@
 class CloneDialog(QDialog):     def __init__(self, args=None, opts=None): - super(CloneDialog, self).__init__(None, Qt.WindowTitleHint or - Qt.WindowSystemMenuHint) + super(CloneDialog, self).__init__() + self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)   self.ui = ui.ui()     src = hglib.tounicode(os.getcwd())
 
255
256
257
258
259
 
 
260
261
262
 
255
256
257
 
 
258
259
260
261
262
@@ -255,8 +255,8 @@
  commandCanceling = pyqtSignal()     def __init__(self, cmdline, parent=None): - super(Dialog, self).__init__(parent, Qt.WindowTitleHint or - Qt.WindowSystemMenuHint) + super(Dialog, self).__init__(parent) + self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)     self.core = Core()   self.core.commandFinished.connect(self.command_finished)
 
24
25
26
27
28
 
 
29
30
31
 
24
25
26
 
 
27
28
29
30
31
@@ -24,8 +24,8 @@
  )     def __init__(self, rev=None, repo=None, parent=None, opts=None): - super(UpdateDialog, self).__init__(parent, Qt.WindowTitleHint or - Qt.WindowSystemMenuHint) + super(UpdateDialog, self).__init__(parent) + self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)     self._finished = False