From e98e218564694ccca6c0a2962e56ffb7256a11ea Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 10 Nov 2008 13:48:43 +0000 Subject: [PATCH] Fix "two instances of the DragAndDropHelper" singleton: Vir found the reason, draganddrophelper.cpp was compiled both into libdolphinprivate and into dolphin. Also fix missing newline in copyright header. svn path=/trunk/KDE/kdebase/apps/; revision=882336 --- src/CMakeLists.txt | 1 - src/draganddrophelper.cpp | 4 +++- src/draganddrophelper.h | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dcf217d80..f31356380 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -103,7 +103,6 @@ set(dolphin_SRCS dolphincontextmenu.cpp dolphinfileplacesview.cpp dolphinsettingsdialog.cpp - draganddrophelper.cpp filterbar.cpp generalsettingspage.cpp generalviewsettingspage.cpp diff --git a/src/draganddrophelper.cpp b/src/draganddrophelper.cpp index a4971a62c..d8c55ed12 100644 --- a/src/draganddrophelper.cpp +++ b/src/draganddrophelper.cpp @@ -1,6 +1,7 @@ /*************************************************************************** * Copyright (C) 2007 by Peter Penz * - * Copyright (C) 2007 by David Faure * * * + * Copyright (C) 2007 by David Faure * + * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * @@ -25,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/src/draganddrophelper.h b/src/draganddrophelper.h index c6abd46c3..907dd0c2c 100644 --- a/src/draganddrophelper.h +++ b/src/draganddrophelper.h @@ -1,6 +1,7 @@ /*************************************************************************** * Copyright (C) 2007 by Peter Penz * - * Copyright (C) 2007 by David Faure * * * + * Copyright (C) 2007 by David Faure * + * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * @@ -20,6 +21,7 @@ #ifndef DRAGANDDROPHELPER_H #define DRAGANDDROPHELPER_H +#include "libdolphin_export.h" #include class DolphinController; @@ -39,7 +41,7 @@ class QWidget; * DolphinColumnView and SidebarTreeView to have a consistent * drag and drop behavior between all views. */ -class DragAndDropHelper : public QObject +class LIBDOLPHINPRIVATE_EXPORT DragAndDropHelper : public QObject { Q_OBJECT -- 2.47.3