diff options
author | kh1 <qt-info@nokia.com> | 2010-08-06 14:40:44 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-08-06 14:45:53 +0200 |
commit | 7b3208ce0fe2cc92d22752bde48eefb7dc3734ee (patch) | |
tree | b720028393b76932fc1f7904a7bce69f12dff58b /src/plugins/help/externalhelpwindow.cpp | |
parent | 85bafac50e24bae9d458ccd6ccc679ae5bd5ffc9 (diff) | |
download | qt-creator-7b3208ce0fe2cc92d22752bde48eefb7dc3734ee.tar.gz |
Add some more missing shortcuts.
Diffstat (limited to 'src/plugins/help/externalhelpwindow.cpp')
-rw-r--r-- | src/plugins/help/externalhelpwindow.cpp | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/plugins/help/externalhelpwindow.cpp b/src/plugins/help/externalhelpwindow.cpp index edc2a2dc84..9f51f91fc1 100644 --- a/src/plugins/help/externalhelpwindow.cpp +++ b/src/plugins/help/externalhelpwindow.cpp @@ -94,10 +94,24 @@ ExternalHelpWindow::ExternalHelpWindow(QWidget *parent) addAction(action); action = new QAction(this); - action->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_0)); - connect(action, SIGNAL(triggered()), CentralWidget::instance(), SLOT(resetZoom())); + action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_M)); + connect(action, SIGNAL(triggered()), this, SIGNAL(addBookmark())); addAction(action); + action = new QAction(this); + action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C)); + connect(action, SIGNAL(triggered()), CentralWidget::instance(), SLOT(copy())); + addAction(action); + + action = new QAction(this); + action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_P)); + connect(action, SIGNAL(triggered()), CentralWidget::instance(), SLOT(print())); + addAction(action); + + QAction *reset = new QAction(this); + connect(reset, SIGNAL(triggered()), CentralWidget::instance(), SLOT(resetZoom())); + addAction(reset); + QAction *ctrlTab = new QAction(this); connect(ctrlTab, SIGNAL(triggered()), &OpenPagesManager::instance(), SLOT(gotoPreviousPage())); @@ -113,13 +127,15 @@ ExternalHelpWindow::ExternalHelpWindow(QWidget *parent) connect(action, SIGNAL(triggered()), this, SIGNAL(showHideSidebar())); #ifdef Q_WS_MAC + reset->setShortcut(QKeySequence(Qt::ALT + Qt::Key_0)); action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_0)); - ctrlTab->setShortcut(QKeySequence(tr("Alt+Tab"))); - ctrlShiftTab->setShortcut(QKeySequence(tr("Alt+Shift+Tab"))); + ctrlTab->setShortcut(QKeySequence(Qt::ALT + Qt::Key_Tab)); + ctrlShiftTab->setShortcut(QKeySequence(Qt::ALT + Qt::SHIFT + Qt::Key_Tab)); #else + reset->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_0)); action->setShortcut(QKeySequence(Qt::ALT + Qt::Key_0)); - ctrlTab->setShortcut(QKeySequence(tr("Ctrl+Tab"))); - ctrlShiftTab->setShortcut(QKeySequence(tr("Ctrl+Shift+Tab"))); + ctrlTab->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Tab)); + ctrlShiftTab->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Tab)); #endif QToolButton *button = new QToolButton; |