Minimize the main window with Command + M on Mac OS.

Closes #42
This commit is contained in:
Felix Geyer 2012-08-31 11:22:59 +02:00
parent de1a94ff61
commit ba7b787dd3

View File

@ -19,6 +19,7 @@
#include "ui_MainWindow.h"
#include <QtGui/QCloseEvent>
#include <QtGui/QShortcut>
#include "autotype/AutoType.h"
#include "core/Config.h"
@ -73,6 +74,10 @@ MainWindow::MainWindow()
setShortcut(m_ui->actionEntryAutoType, QKeySequence::Paste, Qt::CTRL + Qt::Key_V);
m_ui->actionEntryOpenUrl->setShortcut(Qt::CTRL + Qt::Key_U);
#ifdef Q_OS_MAC
new QShortcut(Qt::CTRL + Qt::Key_M, this, SLOT(showMinimized()));
#endif
m_ui->actionDatabaseNew->setIcon(filePath()->icon("actions", "document-new"));
m_ui->actionDatabaseOpen->setIcon(filePath()->icon("actions", "document-open"));
m_ui->actionDatabaseSave->setIcon(filePath()->icon("actions", "document-save"));