summaryrefslogtreecommitdiffstats
path: root/qt-ui/usermanual.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-28 18:06:27 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-28 14:30:19 -0800
commit5649086d6122a1c143f49832a85be7ccc90475ca (patch)
tree70a5146716d08972b16bcb785c608a5c7e974562 /qt-ui/usermanual.h
parenteaec0bc84228216a79074c78347c5ad41bdec121 (diff)
downloadsubsurface-5649086d6122a1c143f49832a85be7ccc90475ca.tar.gz
Make search and close shortcut for user manual work on Mac
When the help dialog appears, remove the shortcuts for filter and close from the main window so that the identical keys for the help window work. This is not necessary on other platforms, but on Mac it appears to be required. [Dirk Hohndel: Tomaz had a slightly different approach of removing the actions, instead I changed this to just modify the shortcuts] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usermanual.h')
-rw-r--r--qt-ui/usermanual.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/usermanual.h b/qt-ui/usermanual.h
index c36226027..5101a3c3b 100644
--- a/qt-ui/usermanual.h
+++ b/qt-ui/usermanual.h
@@ -26,6 +26,15 @@ class UserManual : public QWidget {
public:
explicit UserManual(QWidget *parent = 0);
+
+#ifdef Q_OS_MAC
+protected:
+ void showEvent(QShowEvent *e);
+ void hideEvent(QHideEvent *e);
+ QAction *closeAction;
+ QAction *filterAction;
+#endif
+
private
slots:
void searchTextChanged(const QString& s);