This commit is contained in:
Kovid Goyal 2014-11-03 09:05:36 +05:30
parent 821c414877
commit 44eae0780a
2 changed files with 3 additions and 1 deletions

View File

@ -193,6 +193,7 @@ class Diff(Dialog):
self.show_open_in_editor = show_open_in_editor
self.revert_button_msg = revert_button_msg
Dialog.__init__(self, _('Differences between books'), 'diff-dialog', parent=parent)
self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
if show_as_window:
self.setWindowFlags(Qt.Window)
self.view.line_activated.connect(self.line_activated)

View File

@ -6,7 +6,7 @@ from __future__ import (unicode_literals, division, absolute_import,
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
from PyQt5.Qt import QDialog, QDialogButtonBox, QVBoxLayout, QIcon
from PyQt5.Qt import QDialog, QDialogButtonBox, QVBoxLayout, QIcon, Qt
from PyQt5.QtWebKitWidgets import QWebInspector
from calibre.gui2 import gprefs
@ -15,6 +15,7 @@ class WebInspector(QDialog):
def __init__(self, parent, page):
QDialog.__init__(self, parent)
self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
self.setWindowTitle(_('Inspect book code'))
self.setWindowIcon(QIcon(I('debug.png')))
l = QVBoxLayout()