mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ce69866801
commit
b4c173c598
@ -35,7 +35,6 @@ class MainWindow(QMainWindow):
|
||||
self.setCentralWidget(w)
|
||||
self.l = l = QVBoxLayout(w)
|
||||
mb = f.create_window_menubar(self)
|
||||
self.setMenuBar(mb)
|
||||
m = self.menu_one = mb.addMenu('&One')
|
||||
m.aboutToShow.connect(self.about_to_show_one)
|
||||
s = self.style()
|
||||
|
@ -180,7 +180,9 @@ class Factory(QObject):
|
||||
def create_window_menubar(self, parent):
|
||||
if not QApplication.instance().testAttribute(Qt.AA_DontUseNativeMenuBar) and self.has_global_menu:
|
||||
return ExportedMenuBar(parent, self.menu_registrar, self.bus)
|
||||
return QMenuBar(parent)
|
||||
ans = QMenuBar(parent)
|
||||
parent.setMenuBar(ans)
|
||||
return ans
|
||||
|
||||
def create_system_tray_icon(self, parent=None, title=None, category=None):
|
||||
if self.has_status_notifier:
|
||||
|
Loading…
x
Reference in New Issue
Block a user