mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Mac: Re-enable system-wide menu menu bar
This commit is contained in:
parent
13b1614e11
commit
e83d75f251
@ -349,15 +349,23 @@ void BrowserWindow::setupUi()
|
||||
|
||||
void BrowserWindow::setupMenu()
|
||||
{
|
||||
// TODO: Mac menu
|
||||
#ifdef Q_OS_MAC
|
||||
return;
|
||||
#endif
|
||||
static MainMenu* macMainMenu = 0;
|
||||
|
||||
if (!macMainMenu) {
|
||||
macMainMenu = new MainMenu(this, 0);
|
||||
macMainMenu->initMenuBar(new QMenuBar(0));
|
||||
}
|
||||
else {
|
||||
macMainMenu->setWindow(this);
|
||||
}
|
||||
#else
|
||||
setMenuBar(new MenuBar(this));
|
||||
|
||||
m_mainMenu = new MainMenu(this, this);
|
||||
m_mainMenu->initMenuBar(menuBar());
|
||||
m_mainMenu->initSuperMenu(m_superMenu);
|
||||
#endif
|
||||
|
||||
// Setup other shortcuts
|
||||
QShortcut* reloadBypassCacheAction = new QShortcut(QKeySequence(QSL("Ctrl+F5")), this);
|
||||
|
Loading…
Reference in New Issue
Block a user