X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a06ee3399bece608790e419054f95807a017a020..1b192c67f9735cd724c4958e7ba32a7b549770b6:/src/dolphinpart_ext.cpp diff --git a/src/dolphinpart_ext.cpp b/src/dolphinpart_ext.cpp index d275e8627..a6d52e583 100644 --- a/src/dolphinpart_ext.cpp +++ b/src/dolphinpart_ext.cpp @@ -1,20 +1,7 @@ /* This file is part of the KDE project - * Copyright (c) 2012 Dawit Alemayehu + * SPDX-FileCopyrightText: 2012 Dawit Alemayehu * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public License - * along with this library; see the file COPYING.LIB. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "dolphinpart_ext.h" @@ -22,11 +9,6 @@ #include "dolphinpart.h" #include "views/dolphinview.h" -#include - -#include - - DolphinPartBrowserExtension::DolphinPartBrowserExtension(DolphinPart* part) :KParts::BrowserExtension( part ) ,m_part(part) @@ -48,12 +30,12 @@ void DolphinPartBrowserExtension::saveState(QDataStream &stream) void DolphinPartBrowserExtension::cut() { - m_part->view()->cutSelectedItems(); + m_part->view()->cutSelectedItemsToClipboard(); } void DolphinPartBrowserExtension::copy() { - m_part->view()->copySelectedItems(); + m_part->view()->copySelectedItemsToClipboard(); } void DolphinPartBrowserExtension::paste() @@ -182,11 +164,11 @@ KParts::ListingNotificationExtension::NotificationEventTypes DolphinPartListingN void DolphinPartListingNotificationExtension::slotNewItems(const KFileItemList& items) { - emit listingEvent(KParts::ListingNotificationExtension::ItemsAdded, items); + Q_EMIT listingEvent(KParts::ListingNotificationExtension::ItemsAdded, items); } void DolphinPartListingNotificationExtension::slotItemsDeleted(const KFileItemList& items) { - emit listingEvent(KParts::ListingNotificationExtension::ItemsDeleted, items); + Q_EMIT listingEvent(KParts::ListingNotificationExtension::ItemsDeleted, items); }