Mercurial > hg > tony
comparison src/MainWindow.cpp @ 367:3c8dccd0cafe
removed unhelpful help item from help menu
author | matthiasm |
---|---|
date | Tue, 15 Jul 2014 18:15:37 +0100 |
parents | 6439ca6e7de1 |
children | a848ca75b5d2 |
comparison
equal
deleted
inserted
replaced
366:6439ca6e7de1 | 367:3c8dccd0cafe |
---|---|
928 m_keyReference->setCategory(tr("Help")); | 928 m_keyReference->setCategory(tr("Help")); |
929 | 929 |
930 IconLoader il; | 930 IconLoader il; |
931 | 931 |
932 QString name = QApplication::applicationName(); | 932 QString name = QApplication::applicationName(); |
933 | 933 QAction *action; |
934 QAction *action = new QAction(il.load("help"), | 934 |
935 tr("&Help Reference"), this); | 935 // action = new QAction(il.load("help"), |
936 action->setShortcut(tr("F1")); | 936 // tr("&Help Reference"), this); |
937 action->setStatusTip(tr("Open the %1 reference manual").arg(name)); | 937 // action->setShortcut(tr("F1")); |
938 connect(action, SIGNAL(triggered()), this, SLOT(help())); | 938 // action->setStatusTip(tr("Open the %1 reference manual").arg(name)); |
939 m_keyReference->registerShortcut(action); | 939 // connect(action, SIGNAL(triggered()), this, SLOT(help())); |
940 menu->addAction(action); | 940 // m_keyReference->registerShortcut(action); |
941 // menu->addAction(action); | |
941 | 942 |
942 action = new QAction(tr("&Key and Mouse Reference"), this); | 943 action = new QAction(tr("&Key and Mouse Reference"), this); |
943 action->setShortcut(tr("F2")); | 944 action->setShortcut(tr("F2")); |
944 action->setStatusTip(tr("Open a window showing the keystrokes you can use in %1").arg(name)); | 945 action->setStatusTip(tr("Open a window showing the keystrokes you can use in %1").arg(name)); |
945 connect(action, SIGNAL(triggered()), this, SLOT(keyReference())); | 946 connect(action, SIGNAL(triggered()), this, SLOT(keyReference())); |