Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 48b58f83 authored by Roman Inflianskas's avatar Roman Inflianskas

Remove unused #include

Summary: I used CLion inspection to hunt all unused #include

Reviewers: #dolphin, elvisangelaccio, markg

Reviewed By: #dolphin, elvisangelaccio, markg

Subscribers: bcooksley, markg, elvisangelaccio, #dolphin

Differential Revision: https://phabricator.kde.org/D10985
parent 533f0508
......@@ -20,11 +20,9 @@
#include "dbusinterface.h"
#include "global.h"
#include <QDBusConnection>
#include <QList>
#include <QUrl>
#include <KPropertiesDialog>
#include <KRun>
#include <QDBusConnection>
DBusInterface::DBusInterface() :
QObject()
......
......@@ -20,43 +20,40 @@
#include "dolphincontextmenu.h"
#include "dolphin_generalsettings.h"
#include "dolphinmainwindow.h"
#include "dolphinnewfilemenu.h"
#include "dolphinviewcontainer.h"
#include "dolphin_generalsettings.h"
#include "dolphinremoveaction.h"
#include "dolphinviewcontainer.h"
#include "panels/places/placesitem.h"
#include "panels/places/placesitemmodel.h"
#include "views/dolphinview.h"
#include "views/viewmodecontroller.h"
#include <KActionCollection>
#include <KAbstractFileItemActionPlugin>
#include <KActionCollection>
#include <KFileItemActions>
#include <KFileItemListProperties>
#include <KIO/RestoreJob>
#include <KIO/EmptyTrashJob>
#include <KIO/JobUiDelegate>
#include <KIO/Paste>
#include <KIO/RestoreJob>
#include <KJobWidgets>
#include <KLocalizedString>
#include <KMimeTypeTrader>
#include <KNewFileMenu>
#include <KPluginMetaData>
#include <KService>
#include <KLocalizedString>
#include <KStandardAction>
#include <KToolBar>
#include <QApplication>
#include <QClipboard>
#include <QKeyEvent>
#include <QMenuBar>
#include <QMenu>
#include <QMenuBar>
#include <QMimeDatabase>
#include <panels/places/placesitem.h>
#include <panels/places/placesitemmodel.h>
#include "views/dolphinview.h"
#include "views/viewmodecontroller.h"
DolphinContextMenu::DolphinContextMenu(DolphinMainWindow* parent,
const QPoint& pos,
const KFileItem& fileInfo,
......
......@@ -20,13 +20,11 @@
#ifndef DOLPHINCONTEXTMENU_H
#define DOLPHINCONTEXTMENU_H
#include <KFileItem>
#include <QUrl>
#include <KFileCopyToMenu>
#include <QMenu>
#include <KFileItem>
#include <QMenu>
#include <QUrl>
class QAction;
class DolphinMainWindow;
......
......@@ -41,44 +41,43 @@
#include "views/draganddrophelper.h"
#include "views/viewproperties.h"
#include "views/dolphinnewfilemenuobserver.h"
#include "dolphin_generalsettings.h"
#include <KActionCollection>
#include <KActionMenu>
#include <KAuthorized>
#include <KConfig>
#include <kdualaction.h>
#include <KFileItemListProperties>
#include <KFilePlacesModel>
#include <KHelpMenu>
#include <KJobWidgets>
#include <QLineEdit>
#include <KToolBar>
#include <KIO/JobUiDelegate>
#include <KJobWidgets>
#include <KLocalizedString>
#include <KProtocolManager>
#include <KProtocolInfo>
#include <QMenu>
#include <KMessageBox>
#include <KFilePlacesModel>
#include <KFileItemListProperties>
#include <KProtocolInfo>
#include <KProtocolManager>
#include <KRun>
#include <KShell>
#include <KStandardAction>
#include <KToggleAction>
#include <KUrlNavigator>
#include <KToolBar>
#include <KToolInvocation>
#include <KUrlComboBox>
#include <KUrlNavigator>
#include <QApplication>
#include <QMenuBar>
#include <QClipboard>
#include <QToolButton>
#include <QTimer>
#include <QStandardPaths>
#include <QPushButton>
#include <QCloseEvent>
#include <QShowEvent>
#include <QDialog>
#include <QLineEdit>
#include <QMenu>
#include <QMenuBar>
#include <QPushButton>
#include <QShowEvent>
#include <QStandardPaths>
#include <QTimer>
#include <QToolButton>
#include <kdualaction.h>
namespace {
// Used for GeneralSettings::version() to determine whether
......
......@@ -23,15 +23,14 @@
#define DOLPHIN_MAINWINDOW_H
#include <config-baloo.h>
#include <kio/fileundomanager.h>
#include <ksortablelist.h>
#include <kxmlguiwindow.h>
#include <QIcon>
#include <QUrl>
#include <QIcon>
#include <QList>
#include <QPointer>
#include <QUrl>
typedef KIO::FileUndoManager::CommandType CommandType;
......
......@@ -21,10 +21,10 @@
#ifndef DOLPHINNEWFILEMENU_H
#define DOLPHINNEWFILEMENU_H
#include <KNewFileMenu>
#include "dolphin_export.h"
#include <KNewFileMenu>
class KJob;
/**
......
......@@ -18,43 +18,42 @@
*/
#include "dolphinpart.h"
#include "dolphinremoveaction.h"
#include <KFileItemListProperties>
#include "dolphindebug.h"
#include "dolphinnewfilemenu.h"
#include "dolphinpart_ext.h"
#include "dolphinremoveaction.h"
#include "kitemviews/kfileitemmodel.h"
#include "kitemviews/private/kfileitemmodeldirlister.h"
#include "views/dolphinnewfilemenuobserver.h"
#include "views/dolphinremoteencoding.h"
#include "views/dolphinview.h"
#include "views/dolphinviewactionhandler.h"
#include <KAboutData>
#include <KActionCollection>
#include "dolphindebug.h"
#include <KAuthorized>
#include <KConfigGroup>
#include <KFileItemListProperties>
#include <KIconLoader>
#include <KJobWidgets>
#include <KLocalizedString>
#include <KMessageBox>
#include <KMimeTypeEditor>
#include <KPluginFactory>
#include <KRun>
#include <KToolInvocation>
#include <KAuthorized>
#include <QMenu>
#include <KSharedConfig>
#include <KConfigGroup>
#include <KMimeTypeEditor>
#include <KJobWidgets>
#include "dolphinpart_ext.h"
#include "dolphinnewfilemenu.h"
#include "views/dolphinview.h"
#include "views/dolphinviewactionhandler.h"
#include "views/dolphinnewfilemenuobserver.h"
#include "views/dolphinremoteencoding.h"
#include "kitemviews/kfileitemmodel.h"
#include "kitemviews/private/kfileitemmodeldirlister.h"
#include <KToolInvocation>
#include <QStandardPaths>
#include <QActionGroup>
#include <QTextDocument>
#include <QApplication>
#include <QClipboard>
#include <QDir>
#include <QKeyEvent>
#include <QInputDialog>
#include <QKeyEvent>
#include <QMenu>
#include <QStandardPaths>
#include <QTextDocument>
K_PLUGIN_FACTORY(DolphinPartFactory, registerPlugin<DolphinPart>();)
......
......@@ -21,8 +21,8 @@
#define DOLPHINPART_H
#include <KParts/ReadOnlyPart>
#include <QUrl>
#include <QUrl>
class DolphinNewFileMenu;
class DolphinViewActionHandler;
......
......@@ -22,11 +22,6 @@
#include "dolphinpart.h"
#include "views/dolphinview.h"
#include <QVariant>
#include <KFileItem>
DolphinPartBrowserExtension::DolphinPartBrowserExtension(DolphinPart* part)
:KParts::BrowserExtension( part )
,m_part(part)
......
......@@ -24,6 +24,7 @@
#include <kparts/fileinfoextension.h>
#include <kparts/listingfilterextension.h>
#include <kparts/listingnotificationextension.h>
#include <QUrl>
class DolphinPart;
......
......@@ -19,9 +19,10 @@
#include "dolphinrecenttabsmenu.h"
#include <KLocalizedString>
#include <KAcceleratorManager>
#include <KLocalizedString>
#include <kio/global.h>
#include <QMenu>
DolphinRecentTabsMenu::DolphinRecentTabsMenu(QObject* parent) :
......
......@@ -21,6 +21,7 @@
#define DOLPHIN_RECENT_TABS_MENU_H
#include <KActionMenu>
#include <QUrl>
class QAction;
......
......@@ -22,9 +22,6 @@
#include <QApplication>
#include <KLocalizedString>
DolphinRemoveAction::DolphinRemoveAction(QObject* parent, KActionCollection* collection) :
QAction(parent),
m_collection(collection)
......
......@@ -23,11 +23,11 @@
#include "dolphin_export.h"
#include <KActionCollection>
#include <QAction>
#include <QPointer>
#include <KActionCollection>
/**
* A QAction that manages the delete based on the current state of
* the Shift key or the parameter passed to update.
......
......@@ -19,13 +19,12 @@
#include "dolphintabbar.h"
#include <QTimer>
#include <QDragEnterEvent>
#include <KLocalizedString>
#include <QDragEnterEvent>
#include <QMenu>
#include <QIcon>
#include <QUrl>
#include <QMimeData>
#include <QTimer>
DolphinTabBar::DolphinTabBar(QWidget* parent) :
QTabBar(parent),
......
......@@ -19,8 +19,8 @@
#include "dolphintabpage.h"
#include "dolphinviewcontainer.h"
#include "dolphin_generalsettings.h"
#include "dolphinviewcontainer.h"
#include <QSplitter>
#include <QVBoxLayout>
......
......@@ -20,9 +20,9 @@
#ifndef DOLPHIN_TAB_PAGE_H
#define DOLPHIN_TAB_PAGE_H
#include <QWidget>
#include <QPointer>
#include <QUrl>
#include <QWidget>
class QSplitter;
class DolphinViewContainer;
......
......@@ -23,12 +23,13 @@
#include "dolphintabpage.h"
#include "dolphinviewcontainer.h"
#include <QApplication>
#include <QDropEvent>
#include <KConfigGroup>
#include <KRun>
#include <KShell>
#include <kio/global.h>
#include <KRun>
#include <QApplication>
#include <QDropEvent>
DolphinTabWidget::DolphinTabWidget(QWidget* parent) :
QTabWidget(parent),
......
......@@ -18,37 +18,34 @@
***************************************************************************/
#include "dolphinviewcontainer.h"
#include <KProtocolManager>
#include <QDropEvent>
#include <QTimer>
#include <QMimeData>
#include <QVBoxLayout>
#include <QLoggingCategory>
#include "dolphin_generalsettings.h"
#include "dolphindebug.h"
#include "filterbar/filterbar.h"
#include "global.h"
#include "search/dolphinsearchbox.h"
#include "statusbar/dolphinstatusbar.h"
#include "views/viewmodecontroller.h"
#include "views/viewproperties.h"
#include <KFileItemActions>
#include <KFilePlacesModel>
#include <KLocalizedString>
#include <KIO/PreviewJob>
#include <kio_version.h>
#include <KLocalizedString>
#include <KMessageWidget>
#include <KProtocolManager>
#include <KRun>
#include <KShell>
#include <QUrl>
#include <KUrlComboBox>
#include <KUrlNavigator>
#include <KRun>
#ifdef KActivities_FOUND
#endif
#include <kio_version.h>
#include "global.h"
#include "dolphindebug.h"
#include "dolphin_generalsettings.h"
#include "filterbar/filterbar.h"
#include "search/dolphinsearchbox.h"
#include "statusbar/dolphinstatusbar.h"
#include "views/viewmodecontroller.h"
#include "views/viewproperties.h"
#include <QDropEvent>
#include <QLoggingCategory>
#include <QMimeData>
#include <QTimer>
#include <QUrl>
#include <QVBoxLayout>
DolphinViewContainer::DolphinViewContainer(const QUrl& url, QWidget* parent) :
QWidget(parent),
......
......@@ -20,18 +20,17 @@
#ifndef DOLPHINVIEWCONTAINER_H
#define DOLPHINVIEWCONTAINER_H
#include <KFileItem>
#include "config-dolphin.h"
#include "views/dolphinview.h"
#include <KCompletion>
#include <KFileItem>
#include <KIO/Job>
#include <KUrlNavigator>
#include <QElapsedTimer>
#include <QWidget>
#include <views/dolphinview.h>
#include <config-dolphin.h>
#ifdef KF5Activities_FOUND
namespace KActivities {
class ResourceInstance;
......
......@@ -18,15 +18,16 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "filterbar.h"
#include <KLocalizedString>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QLabel>
#include <QToolButton>
#include <QHBoxLayout>
#include <KLocalizedString>
#include <QLineEdit>
#include <QToolButton>
FilterBar::FilterBar(QWidget* parent) :
QWidget(parent)
......
......@@ -18,8 +18,9 @@
*/
#include "global.h"
#include "dolphindebug.h"
#include "dolphin_generalsettings.h"
#include "dolphindebug.h"
#include <KRun>
......
......@@ -19,17 +19,17 @@
#include "kfileitemlistview.h"
#include "kfileitemmodelrolesupdater.h"
#include "kfileitemlistwidget.h"
#include "kfileitemmodel.h"
#include "kfileitemmodelrolesupdater.h"
#include "private/kpixmapmodifier.h"
#include <KIconLoader>
#include <QPainter>
#include <QTimer>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPainter>
#include <QTimer>
// #define KFILEITEMLISTVIEW_DEBUG
......
......@@ -21,8 +21,7 @@
#define KFILEITEMLISTVIEW_H
#include "dolphin_export.h"
#include <kitemviews/kstandarditemlistview.h>
#include "kitemviews/kstandarditemlistview.h"
class KFileItemModelRolesUpdater;
class QTimer;
......
......@@ -21,8 +21,9 @@
#include "kfileitemmodel.h"
#include "kitemlistview.h"
#include <KLocalizedString>
#include <KFormat>
#include <KLocalizedString>
#include <QMimeDatabase>
KFileItemListWidgetInformant::KFileItemListWidgetInformant() :
......
......@@ -21,8 +21,7 @@
#define KFILEITEMLISTWIDGET_H
#include "dolphin_export.h"
#include <kitemviews/kstandarditemlistwidget.h>
#include "kitemviews/kstandarditemlistwidget.h"
class DOLPHIN_EXPORT KFileItemListWidgetInformant : public KStandardItemListWidgetInformant
{
......
......@@ -22,15 +22,13 @@
#include "kfileitemmodel.h"
#include "dolphin_generalsettings.h"
#include "dolphindebug.h"
#include "private/kfileitemmodeldirlister.h"
#include "private/kfileitemmodelsortalgorithm.h"
#include <KLocalizedString>
#include <KUrlMimeData>
#include "dolphindebug.h"
#include "private/kfileitemmodelsortalgorithm.h"
#include "private/kfileitemmodeldirlister.h"
#include <QElapsedTimer>
#include <QMimeData>
#include <QTimer>
......
......@@ -21,14 +21,15 @@
#define KFILEITEMMODEL_H
#include "dolphin_export.h"
#include "kitemviews/kitemmodelbase.h"
#include "kitemviews/private/kfileitemmodelfilter.h"
#include <KFileItem>
#include <QUrl>
#include <kitemviews/kitemmodelbase.h>
#include <kitemviews/private/kfileitemmodelfilter.h>
#include <QCollator>
#include <QHash>
#include <QSet>
#include <QUrl>
#include <functional>
......
......@@ -20,31 +20,30 @@
#include "kfileitemmodelrolesupdater.h"
#include "kfileitemmodel.h"
#include "private/kdirectorycontentscounter.h"
#include "private/kpixmapmodifier.h"
#include <KConfig>
#include <KConfigGroup>
#include <KSharedConfig>
#include <KIconLoader>
#include <KJobWidgets>
#include <KIO/JobUiDelegate>
#include <KIO/PreviewJob>
#include <KPluginLoader>
#include <KIconLoader>
#include <KJobWidgets>
#include <KOverlayIconPlugin>
#include <KPluginLoader>
#include <KSharedConfig>
#include "private/kpixmapmodifier.h"
#include "private/kdirectorycontentscounter.h"
#ifdef HAVE_BALOO
#include "private/kbaloorolesprovider.h"
#include <Baloo/File>
#include <Baloo/FileMonitor>
#endif
#include <QApplication>
#include <QPainter>
#include <QElapsedTimer>
#include <QTimer>
#ifdef HAVE_BALOO
#include "private/kbaloorolesprovider.h"
#include <Baloo/File>
#include <Baloo/FileMonitor>
#endif
// #define KFILEITEMMODELROLESUPDATER_DEBUG
......
......@@ -20,12 +20,11 @@
#ifndef KFILEITEMMODELROLESUPDATER_H
#define KFILEITEMMODELROLESUPDATER_H
#include <config-baloo.h>
#include "dolphin_export.h"
#include "kitemviews/kitemmodelbase.h"
#include <KFileItem>
#include <kitemviews/kitemmodelbase.h>
#include "dolphin_export.h"
#include <config-baloo.h>
#include <QObject>
#include <QSet>
......