changeset 462:110d1fefa073

Omit icons from menus on Mac
author Chris Cannam
date Thu, 30 Jun 2011 09:43:29 +0100
parents 33a1c7c9d9d9
children 3d7070aa959e
files src/main.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.cpp	Thu Jun 30 09:43:18 2011 +0100
+++ b/src/main.cpp	Thu Jun 30 09:43:29 2011 +0100
@@ -31,6 +31,11 @@
     QApplication::setOrganizationDomain("easymercurial.org");
     QApplication::setApplicationName(QApplication::tr("EasyMercurial"));
 
+#ifdef Q_OS_MAC
+    // Mac doesn't align menu labels when icons are shown: result is messy
+    app.setAttribute(Qt::AA_DontShowIconsInMenus);
+#endif
+
     // Lose our controlling terminal (so we can provide a new pty to
     // capture password requests)
     loseControllingTerminal();