X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f3537f5b5fb0fd107a2e299aaeca3524cf1dd792..7a9aa9076f493be28ce8b27cba013b7d3966cc7d:/src/dolphinpart_ext.cpp diff --git a/src/dolphinpart_ext.cpp b/src/dolphinpart_ext.cpp index fb7a4d2ea..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() @@ -61,7 +43,7 @@ void DolphinPartBrowserExtension::paste() m_part->view()->paste(); } -void DolphinPartBrowserExtension::pasteTo(const KUrl&) +void DolphinPartBrowserExtension::pasteTo(const QUrl&) { m_part->view()->pasteIntoFolder(); } @@ -182,12 +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); } -#include "dolphinpart_ext.moc"