┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemsignalhandler.cpp
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2021-12-16 19:29:22 +0100
committerKai Uwe Broulik <[email protected]>2022-01-09 18:09:10 +0100
commit0603e18cd4e36b988196a99810f2e3e803fe3125 (patch)
tree6d70829efea053cb36c9e6618d8feadd45569a91 /src/panels/places/placesitemsignalhandler.cpp
parent3abc4cfcd49df45c856e1b5f01da8de8f970ccb2 (diff)
Port back to KFilePlacesView
This removes the custom-view engine version of the places panel and replaces it with the upstream `KFilePlacesView` from KIO.
Diffstat (limited to 'src/panels/places/placesitemsignalhandler.cpp')
-rw-r--r--src/panels/places/placesitemsignalhandler.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/panels/places/placesitemsignalhandler.cpp b/src/panels/places/placesitemsignalhandler.cpp
deleted file mode 100644
index 19f16c7b5..000000000
--- a/src/panels/places/placesitemsignalhandler.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2012 Peter Penz <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
- */
-
-#include "placesitemsignalhandler.h"
-
-#include "placesitem.h"
-
-PlacesItemSignalHandler::PlacesItemSignalHandler(PlacesItem* item,
- QObject* parent) :
- QObject(parent),
- m_item(item)
-{
-}
-
-PlacesItemSignalHandler::~PlacesItemSignalHandler()
-{
-}
-
-void PlacesItemSignalHandler::onAccessibilityChanged()
-{
- if (m_item) {
- m_item->onAccessibilityChanged();
- }
-}
-
-void PlacesItemSignalHandler::onTearDownRequested(const QString& udi)
-{
- Q_UNUSED(udi)
- if (m_item) {
- Solid::StorageAccess *tmp = m_item->device().as<Solid::StorageAccess>();
- if (tmp) {
- Q_EMIT tearDownExternallyRequested(tmp->filePath());
- }
- }
-}
-
-void PlacesItemSignalHandler::onTrashEmptinessChanged(bool isTrashEmpty)
-{
- if (m_item) {
- m_item->setIcon(isTrashEmpty ? QStringLiteral("user-trash") : QStringLiteral("user-trash-full"));
- }
-}
-