}
}
-void PlacesItemSignalHandler::onTrashDirListerCompleted()
-{
- if (m_item) {
- m_item->onTrashDirListerCompleted();
- }
-}
-
void PlacesItemSignalHandler::onTearDownRequested(const QString& udi)
{
Q_UNUSED(udi)
if (m_item) {
Solid::StorageAccess *tmp = m_item->device().as<Solid::StorageAccess>();
if (tmp) {
- QString mountPath = tmp->filePath();
- emit tearDownExternallyRequested(mountPath);
+ emit tearDownExternallyRequested(tmp->filePath());
}
}
}
+void PlacesItemSignalHandler::onTrashEmptinessChanged(bool isTrashEmpty)
+{
+ if (m_item) {
+ m_item->setIcon(isTrashEmpty ? QStringLiteral("user-trash") : QStringLiteral("user-trash-full"));
+ }
+}
+