Mercurial > hg > svapp
diff framework/MainWindowBase.h @ 354:4969e7921931 tonioni
Fix single-key menu shortcuts on OS/X (for #890)
author | Chris Cannam |
---|---|
date | Mon, 02 Jun 2014 17:32:08 +0100 |
parents | b3609adae921 |
children | 337cdb5e5b06 0876ea394902 |
line wrap: on
line diff
--- a/framework/MainWindowBase.h Thu May 29 16:27:52 2014 +0100 +++ b/framework/MainWindowBase.h Mon Jun 02 17:32:08 2014 +0100 @@ -284,6 +284,8 @@ virtual void newerVersionAvailable(QString) { } + virtual void menuActionMapperInvoked(QObject *); + protected: QString m_sessionFile; QString m_audioFile; @@ -412,6 +414,11 @@ virtual void updateVisibleRangeDisplay(Pane *p) const = 0; virtual void updatePositionStatusDisplays() const = 0; + // Call this after setting up the menu bar, to fix up single-key + // shortcuts on OS/X + virtual void finaliseMenus(); + virtual void finaliseMenu(QMenu *); + virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; } virtual void connectLayerEditDialog(ModelDataTableDialog *dialog);