Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placespanel.cpp
Context not available. | |||||
216 | removeAction = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@item:inmenu", "Remove")); | 216 | removeAction = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@item:inmenu", "Remove")); | ||
---|---|---|---|---|---|
217 | } | 217 | } | ||
218 | 218 | | |||
219 | QAction* hideAction = menu.addAction(i18nc("@item:inmenu", "Hide")); | 219 | QAction* hideAction = menu.addAction(QIcon::fromTheme(QStringLiteral("hint")), i18nc("@item:inmenu", "Hide")); | ||
220 | hideAction->setCheckable(true); | 220 | hideAction->setCheckable(true); | ||
221 | hideAction->setChecked(item->isHidden()); | 221 | hideAction->setChecked(item->isHidden()); | ||
222 | 222 | | |||
Context not available. | |||||
269 | 269 | | |||
270 | QAction* showAllAction = nullptr; | 270 | QAction* showAllAction = nullptr; | ||
271 | if (m_model->hiddenCount() > 0) { | 271 | if (m_model->hiddenCount() > 0) { | ||
272 | showAllAction = menu.addAction(i18nc("@item:inmenu", "Show All Entries")); | 272 | showAllAction = menu.addAction(QIcon::fromTheme(QStringLiteral("visibility")), i18nc("@item:inmenu", "Show All Entries")); | ||
273 | showAllAction->setCheckable(true); | 273 | showAllAction->setCheckable(true); | ||
274 | showAllAction->setChecked(m_model->hiddenItemsShown()); | 274 | showAllAction->setChecked(m_model->hiddenItemsShown()); | ||
275 | } | 275 | } | ||
Context not available. | |||||
336 | } | 336 | } | ||
337 | 337 | | |||
338 | KFilePlacesModel::GroupType groupType = m_model->groupType(index); | 338 | KFilePlacesModel::GroupType groupType = m_model->groupType(index); | ||
339 | QAction *hideGroupAction = menu->addAction(i18nc("@item:inmenu", "Hide Section '%1'", m_model->item(index)->group())); | 339 | QAction *hideGroupAction = menu->addAction(QIcon::fromTheme(QStringLiteral("hint")), i18nc("@item:inmenu", "Hide Section '%1'", m_model->item(index)->group())); | ||
340 | hideGroupAction->setCheckable(true); | 340 | hideGroupAction->setCheckable(true); | ||
341 | hideGroupAction->setChecked(m_model->isGroupHidden(groupType)); | 341 | hideGroupAction->setChecked(m_model->isGroupHidden(groupType)); | ||
342 | 342 | | |||
Context not available. |