Add Window menu for macOS and specify Help menu to AppKit (#12357)

* Add Window menu for macOS and specify Help menu to AppKit
* Fix potential NSString dangling pointers of temporary QStrings
This commit is contained in:
Sebastian Livoni 2025-11-02 16:16:22 +01:00 committed by Jonathan White
parent daf23b65ad
commit d7c7ce4cc4
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
7 changed files with 65 additions and 2 deletions

View file

@ -90,6 +90,10 @@ MainWindow::MainWindow()
m_ui->setupUi(this);
#ifdef Q_OS_MACOS
macUtils()->configureWindowAndHelpMenus(this, m_ui->menuHelp);
#endif
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) && !defined(QT_NO_DBUS)
new MainWindowAdaptor(this);
QDBusConnection dbus = QDBusConnection::sessionBus();