Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placespanel.cpp
Context not available. | |||||
72 | { | 72 | { | ||
---|---|---|---|---|---|
73 | } | 73 | } | ||
74 | 74 | | |||
75 | void PlacesPanel::proceedWithTearDown() | ||||
76 | { | ||||
77 | m_model->proceedWithTearDown(); | ||||
78 | } | ||||
79 | | ||||
75 | bool PlacesPanel::urlChanged() | 80 | bool PlacesPanel::urlChanged() | ||
76 | { | 81 | { | ||
77 | if (!url().isValid() || url().scheme().contains(QStringLiteral("search"))) { | 82 | if (!url().isValid() || url().scheme().contains(QStringLiteral("search"))) { | ||
Context not available. | |||||
110 | m_model->setGroupedSorting(true); | 115 | m_model->setGroupedSorting(true); | ||
111 | connect(m_model, &PlacesItemModel::errorMessage, | 116 | connect(m_model, &PlacesItemModel::errorMessage, | ||
112 | this, &PlacesPanel::errorMessage); | 117 | this, &PlacesPanel::errorMessage); | ||
118 | connect(m_model, &PlacesItemModel::storageTearDownRequested, | ||||
119 | this, &PlacesPanel::storageTearDownRequested); | ||||
120 | connect(m_model, &PlacesItemModel::storageTearDownExternallyRequested, | ||||
121 | this, &PlacesPanel::storageTearDownExternallyRequested); | ||||
113 | 122 | | |||
114 | m_view = new PlacesView(); | 123 | m_view = new PlacesView(); | ||
115 | m_view->setWidgetCreator(new KItemListWidgetCreator<PlacesItemListWidget>()); | 124 | m_view->setWidgetCreator(new KItemListWidgetCreator<PlacesItemListWidget>()); | ||
Context not available. | |||||
241 | // emit the slotItemMiddleClicked signal, because of Qt::MiddleButton. | 250 | // emit the slotItemMiddleClicked signal, because of Qt::MiddleButton. | ||
242 | triggerItem(index, Qt::MiddleButton); | 251 | triggerItem(index, Qt::MiddleButton); | ||
243 | } else if (action == teardownAction) { | 252 | } else if (action == teardownAction) { | ||
244 | m_model->requestTeardown(index); | 253 | m_model->requestTearDown(index); | ||
245 | } else if (action == ejectAction) { | 254 | } else if (action == ejectAction) { | ||
246 | m_model->requestEject(index); | 255 | m_model->requestEject(index); | ||
247 | } | 256 | } | ||
Context not available. |