]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart_ext.cpp
Merge branch 'release/20.12'
[dolphin.git] / src / dolphinpart_ext.cpp
index fb7a4d2eaf6f0ca50406793449d076ea1833d4dc..a6d52e5836476e9ea4c5efc7ce1c54d1932325ed 100644 (file)
@@ -1,20 +1,7 @@
 /* This file is part of the KDE project
- * Copyright (c) 2012 Dawit Alemayehu <adawit@kde.org>
+ * SPDX-FileCopyrightText: 2012 Dawit Alemayehu <adawit@kde.org>
  *
- * 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 <QVariant>
-
-#include <KFileItemList>
-
-
 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"