This commit is contained in:
Kovid Goyal 2014-10-30 14:10:17 +05:30
parent ce69866801
commit b4c173c598
2 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

@ -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: