| 111 | } |
| 112 | |
| 113 | void ProjectExplorer::createActions() { |
| 114 | expandTreeAction = new QAction(QIcon::fromTheme(QLatin1String("expand-all")), i18n("Expand All"), this); |
| 115 | connect(expandTreeAction, &QAction::triggered, m_treeView, &QTreeView::expandAll); |
| 116 | |
| 117 | expandSelectedTreeAction = new QAction(QIcon::fromTheme(QLatin1String("expand-all")), i18n("Expand Selected"), this); |
| 118 | connect(expandSelectedTreeAction, &QAction::triggered, this, &ProjectExplorer::expandSelected); |
| 119 | |
| 120 | collapseTreeAction = new QAction(QIcon::fromTheme(QLatin1String("collapse-all")), i18n("Collapse All"), this); |
| 121 | connect(collapseTreeAction, &QAction::triggered, m_treeView, &QTreeView::collapseAll); |
| 122 | |
| 123 | collapseSelectedTreeAction = new QAction(QIcon::fromTheme(QLatin1String("collapse-all")), i18n("Collapse Selected"), this); |
| 124 | connect(collapseSelectedTreeAction, &QAction::triggered, this, &ProjectExplorer::collapseSelected); |
| 125 | |
| 126 | deleteSelectedTreeAction = new QAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18n("Delete Selected"), this); |
| 127 | connect(deleteSelectedTreeAction, &QAction::triggered, this, &ProjectExplorer::deleteSelected); |
| 128 | |
| 129 | toggleFilterAction = new QAction(QIcon::fromTheme(QLatin1String("view-filter")), i18n("Search/Filter Options"), this); |
| 130 | toggleFilterAction->setCheckable(true); |
| 131 | toggleFilterAction->setChecked(true); |
| 132 | connect(toggleFilterAction, &QAction::triggered, this, [=]() { |
| 133 | m_frameFilter->setVisible(!m_frameFilter->isVisible()); |
| 134 | }); |
| 135 | } |
| 136 | |
| 137 | /*! |
| 138 | shows the context menu in the tree. In addition to the context menu of the currently selected aspect, |
nothing calls this directly
no test coverage detected