removed help toolbar

This commit is contained in:
Herwig Birke
2018-06-14 11:44:28 +02:00
parent 8cf2da1742
commit 609dcb8c54
2 changed files with 3 additions and 9 deletions
-5
View File
@@ -448,19 +448,14 @@ void cMainWindow::createHelpActions()
QAction* lpAction;
m_lpHelpMenu = menuBar()->addMenu(tr("&Help"));
m_lpHelpToolBar = addToolBar(tr("Help Actions"));
const QIcon contentsIcon = QIcon::fromTheme("help-contents");
lpAction = m_lpHelpMenu->addAction(contentsIcon, tr("&Contents"), this, &cMainWindow::onHelpContents);
m_lpHelpToolBar->addAction(lpAction);
lpAction->setPriority(QAction::LowPriority);
lpAction->setShortcut(QKeySequence::HelpContents);
lpAction = m_lpHelpMenu->addAction(contentsIcon, tr("&Index"), this, &cMainWindow::onHelpIndex);
const QIcon aboutIcon = QIcon::fromTheme("help-about");
lpAction = m_lpHelpMenu->addAction(aboutIcon, tr("&About"), this, &cMainWindow::onHelpAbout);
m_lpHelpToolBar->addAction(lpAction);
lpAction->setPriority(QAction::LowPriority);
lpAction->setShortcut(QKeySequence::HelpContents);
}
+3 -4
View File
@@ -655,15 +655,14 @@ private:
QMenu* m_lpFileMenu; /*!< Pointer to the file menu */
QMenu* m_lpEditMenu; /*!< Pointer to the edit menu */
QMenu* m_lpTextMenu; /*!< Pointer to the text menu */
QMenu* m_lpToolsMenu; /*!< Pointer to the text menu */
QMenu* m_lpWindowMenu; /*!< Pointer to the text menu */
QMenu* m_lpHelpMenu; /*!< Pointer to the text menu */
QMenu* m_lpToolsMenu; /*!< Pointer to the tools menu */
QMenu* m_lpWindowMenu; /*!< Pointer to the window menu */
QMenu* m_lpHelpMenu; /*!< Pointer to the help menu */
QToolBar* m_lpFileToolBar; /*!< Pointer to the file toolbar */
QToolBar* m_lpEditToolBar; /*!< Pointer to the edit toolbar */
QToolBar* m_lpTextToolBar; /*!< Pointer to the text toolbar */
QToolBar* m_lpFormatToolBar; /*!< Pointer to the text format toolbar*/
QToolBar* m_lpHelpToolBar; /*!< Pointer to the text toolbar */
QAction* m_lpActionSave; /*!< Pointer to the File->Save action */
QAction* m_lpActionUndo; /*!< Pointer to the Undo action. This action is active for Text Edit widgets only. */