Commit 848abc59 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: markg, elvisangelaccio, #dolphin

Differential Revision: https://phabricator.kde.org/D10985
parent 32bd8efc
......@@ -25,7 +25,6 @@
#include <QToolButton>
#include <QHBoxLayout>
#include <QIcon>
#include <KLocalizedString>
#include <QLineEdit>
......
......@@ -24,7 +24,6 @@
#include "kfileitemmodel.h"
#include "private/kpixmapmodifier.h"
#include <QIcon>
#include <KIconLoader>
#include <QPainter>
......
......@@ -22,11 +22,8 @@
#include "kitemlistview.h"
#include <KLocalizedString>
#include <KIO/MetaData>
#include <QDateTime>
#include <KFormat>
#include <QMimeDatabase>
#include <QLocale>
KFileItemListWidgetInformant::KFileItemListWidgetInformant() :
KStandardItemListWidgetInformant()
......
......@@ -36,9 +36,6 @@
#include <QTimer>
#include <QWidget>
#include <algorithm>
#include <vector>
// #define KFILEITEMMODEL_DEBUG
KFileItemModel::KFileItemModel(QObject* parent) :
......
......@@ -24,7 +24,6 @@
#include <KConfig>
#include <KConfigGroup>
#include <KSharedConfig>
#include <KFileItem>
#include <KIconLoader>
#include <KJobWidgets>
#include <KIO/JobUiDelegate>
......@@ -37,12 +36,9 @@
#include <QApplication>
#include <QPainter>
#include <QPixmap>
#include <QElapsedTimer>
#include <QTimer>
#include <algorithm>
#ifdef HAVE_BALOO
#include "private/kbaloorolesprovider.h"
#include <Baloo/File>
......
......@@ -24,7 +24,6 @@
#include "kitemlistcontroller.h"
#include "kitemlistview.h"
#include "kitemmodelbase.h"
#include "private/kitemlistsmoothscroller.h"
......@@ -32,7 +31,6 @@
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QScrollBar>
#include <QStyle>
#include <QStyleOption>
/**
......
......@@ -32,7 +32,6 @@
#include <QApplication>
#include <QDrag>
#include <QEvent>
#include <QGraphicsScene>
#include <QGraphicsSceneEvent>
#include <QGraphicsView>
......
......@@ -23,8 +23,6 @@
#include "kitemlistselectionmanager.h"
#include "kitemmodelbase.h"
KItemListSelectionManager::KItemListSelectionManager(QObject* parent) :
QObject(parent),
m_currentItem(-1),
......
......@@ -33,18 +33,13 @@
#include "private/kitemlistrubberband.h"
#include "private/kitemlistsizehintresolver.h"
#include "private/kitemlistviewlayouter.h"
#include "private/kitemlistviewanimation.h"
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsView>
#include <QPainter>
#include <QStyle>
#include <QStyleOptionRubberBand>
#include <QTimer>
#include <QElapsedTimer>
#include <algorithm>
#include "kitemlistviewaccessible.h"
namespace {
......
......@@ -27,12 +27,9 @@
#include "kitemlistview.h"
#include "private/kitemlistviewlayouter.h"
#include <qaccessible.h>
#include <qgraphicsscene.h>
#include <qgraphicsview.h>
#include <QHash>
KItemListView* KItemListViewAccessible::view() const
{
return qobject_cast<KItemListView*>(object());
......
......@@ -23,7 +23,6 @@
#include "kitemlistwidget.h"
#include "kitemlistview.h"
#include "kitemmodelbase.h"
#include "private/kitemlistselectiontoggle.h"
......
......@@ -19,9 +19,6 @@
#include "kitemset.h"
#include <QVector>
#include <algorithm>
KItemSet::iterator KItemSet::insert(int i)
{
......
......@@ -18,8 +18,6 @@
***************************************************************************/
#include "kstandarditem.h"
#include <QSet>
#include <QByteArray>
#include "kstandarditemmodel.h"
KStandardItem::KStandardItem(KStandardItem* parent) :
......
......@@ -21,7 +21,6 @@
#include <KIconLoader>
#include "kstandarditemlistwidget.h"
#include "kstandarditemlistgroupheader.h"
KStandardItemListView::KStandardItemListView(QGraphicsWidget* parent) :
KItemListView(parent),
......
......@@ -22,7 +22,6 @@
#include "kfileitemlistview.h"
#include "kfileitemmodel.h"
#include <QIcon>
#include <KIconEffect>
#include <KIconLoader>
#include <KRatingPainter>
......@@ -35,10 +34,7 @@
#include <QGraphicsScene>
#include <QGraphicsSceneResizeEvent>
#include <QGraphicsView>
#include <QPainter>
#include <QStyleOption>
#include <QTextLayout>
#include <QTextLine>
#include <QPixmapCache>
#include <QGuiApplication>
......
......@@ -20,8 +20,7 @@
#include "kstandarditemmodel.h"
#include "kstandarditem.h"
#include <QSet>
#include <QByteArray>
KStandardItemModel::KStandardItemModel(QObject* parent) :
KItemModelBase(parent),
m_items(),
......
......@@ -29,7 +29,6 @@
#include <KFormat>
#include <QTime>
#include <QMap>
#include <QCollator>
struct KBalooRolesProviderSingleton
......
......@@ -20,7 +20,6 @@
#include "kdirectorycontentscounter.h"
#include "kdirectorycontentscounterworker.h"
#include <kitemviews/kfileitemmodel.h>
#include <KDirWatch>
......
......@@ -21,7 +21,6 @@
#include "kfileitemmodelfilter.h"
#include <KFileItem>
#include <QRegExp>
KFileItemModelFilter::KFileItemModelFilter() :
......
......@@ -20,7 +20,6 @@
#include "kitemlistroleeditor.h"
#include <KIO/Global>
#include <QKeyEvent>
KItemListRoleEditor::KItemListRoleEditor(QWidget *parent) :
KTextEdit(parent),
......
......@@ -20,7 +20,6 @@
#include "kitemlistsmoothscroller.h"
#include <QApplication>
#include <QEvent>
#include <QPropertyAnimation>
#include <QScrollBar>
#include <QWheelEvent>
......
......@@ -21,8 +21,6 @@
#include <kitemviews/kitemlistview.h>
#include <QGraphicsWidget>
#include <QPropertyAnimation>
KItemListViewAnimation::KItemListViewAnimation(QObject* parent) :
......
......@@ -36,8 +36,6 @@
#include <QImage>
#include <QPainter>
#include <QPixmap>
#include <QSize>
#include <QGuiApplication>
static const quint32 stackBlur8Mul[255] =
......
......@@ -30,7 +30,6 @@
#include <KAboutData>
#include <KCrash>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QApplication>
#include <KLocalizedString>
#include <Kdelibs4ConfigMigrator>
......
......@@ -27,12 +27,10 @@
#include <views/renamedialog.h>
#include <kitemviews/kitemlistselectionmanager.h>
#include <kitemviews/kfileitemlistview.h>
#include <kitemviews/kfileitemlistwidget.h>
#include <kitemviews/kitemlistcontainer.h>
#include <kitemviews/kitemlistcontroller.h>
#include <kitemviews/kfileitemmodel.h>
#include <KFileItem>
#include <KJobWidgets>
#include <KJobUiDelegate>
#include <KIO/CopyJob>
......@@ -41,7 +39,6 @@
#include <QApplication>
#include <QBoxLayout>
#include <QDropEvent>
#include <QGraphicsSceneDragDropEvent>
#include <QGraphicsView>
#include <QPropertyAnimation>
......@@ -49,7 +46,6 @@
#include <views/draganddrophelper.h>
#include "dolphindebug.h"
#include "global.h"
FoldersPanel::FoldersPanel(QWidget* parent) :
......
......@@ -20,12 +20,10 @@
#include "treeviewcontextmenu.h"
#include <KFileItem>
#include <KIO/CopyJob>
#include <KIO/DeleteJob>
#include <KIO/JobUiDelegate>
#include <QMenu>
#include <QIcon>
#include <KJobWidgets>
#include <KSharedConfig>
#include <KConfigGroup>
......
......@@ -19,7 +19,6 @@
#include "informationpanelcontent.h"
#include <KFileItem>
#include <KIO/JobUiDelegate>
#include <KIO/PreviewJob>
#include <KJobWidgets>
......@@ -43,18 +42,12 @@
#include <Phonon/BackendCapabilities>
#include <Phonon/MediaObject>
#include <Phonon/SeekSlider>
#include <QEvent>
#include <QLabel>
#include <QPixmap>
#include <QResizeEvent>
#include <QScrollArea>
#include <QTextLayout>
#include <QTextLine>
#include <QTimer>
#include <QVBoxLayout>
#include <QFontDatabase>
#include <QStyle>
#include "dolphin_informationpanelsettings.h"
......
......@@ -21,19 +21,14 @@
#include "phononwidget.h"
#include <Phonon/AudioOutput>
#include <Phonon/Global>
#include <Phonon/MediaObject>
#include <Phonon/SeekSlider>
#include <Phonon/VideoWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QShowEvent>
#include <QToolButton>
#include <QDialog>
#include <QIcon>
#include <KIconLoader>
#include <QUrl>
#include <KLocalizedString>
class EmbeddedVideoPlayer : public Phonon::VideoWidget
......
......@@ -22,7 +22,6 @@
#include <KIconLoader>
#include <QPainter>
#include <QPixmap>
#include <QStyle>
PixmapViewer::PixmapViewer(QWidget* parent, Transition transition) :
......
......@@ -19,7 +19,6 @@
***************************************************************************/
#include "panel.h"
#include <QUrl>
Panel::Panel(QWidget* parent) :
QWidget(parent),
......
......@@ -22,12 +22,10 @@
#include "placesitem.h"
#include <KBookmarkManager>
#include "dolphindebug.h"
#include <KDirLister>
#include <KLocalizedString>
#include "placesitemsignalhandler.h"
#include <QDateTime>
#include <Solid/Block>
PlacesItem::PlacesItem(const KBookmark& bookmark, PlacesItem* parent) :
......
......@@ -33,9 +33,7 @@
#include <QCheckBox>
#include <QEvent>
#include <QFormLayout>
#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QLineEdit>
PlacesItemEditDialog::PlacesItemEditDialog(QWidget* parent) :
......
......@@ -26,28 +26,18 @@
#include "dolphin_generalsettings.h"
#include <KBookmark>
#include <KBookmarkManager>
#include "dolphindebug.h"
#include <QIcon>
#include <KProtocolInfo>
#include <KLocalizedString>
#include <QStandardPaths>
#include <KAboutData>
#include "placesitem.h"
#include <QAction>
#include <QDate>
#include <QMimeData>
#include <QTimer>
#include <KUrlMimeData>
#include <KFilePlacesModel>
#include <Solid/Device>
#include <Solid/DeviceNotifier>
#include <Solid/OpticalDisc>
#include <Solid/OpticalDrive>
#include <Solid/StorageAccess>
#include <Solid/StorageDrive>
#include <views/dolphinview.h>
#include <views/viewproperties.h>
......
......@@ -20,7 +20,6 @@
#include "placesitemsignalhandler.h"
#include "placesitem.h"
#include <Solid/StorageAccess>
PlacesItemSignalHandler::PlacesItemSignalHandler(PlacesItem* item,
QObject* parent) :
......
......@@ -27,7 +27,6 @@
#include "global.h"
#include <KFileItem>
#include "dolphindebug.h"
#include <KDirNotify>
#include <QIcon>
#include <KIO/Job>
......@@ -54,8 +53,6 @@
#include <views/draganddrophelper.h>
#include <QGraphicsSceneDragDropEvent>
#include <QVBoxLayout>
#include <QShowEvent>
#include <QMimeData>
PlacesPanel::PlacesPanel(QWidget* parent) :
Panel(parent),
......
......@@ -25,7 +25,6 @@
#include <QDate>
#include <QRadioButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
DolphinFacetsWidget::DolphinFacetsWidget(QWidget* parent) :
QWidget(parent),
......
......@@ -32,14 +32,11 @@
#include <QButtonGroup>
#include <QDir>
#include <QEvent>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QLabel>
#include <QScrollArea>
#include <QTimer>
#include <QToolButton>
#include <QVBoxLayout>
#include <QUrlQuery>
#include <config-baloo.h>
......
......@@ -32,10 +32,8 @@
#include <KAuthorized>
#include <KWindowConfig>
#include <KLocalizedString>
#include <QIcon>
#include <QPushButton>
#include <QDialogButtonBox>
DolphinSettingsDialog::DolphinSettingsDialog(const QUrl& url, QWidget* parent) :
KPageDialog(parent),
......
......@@ -20,8 +20,6 @@
#include "behaviorsettingspage.h"
#include "dolphin_generalsettings.h"
#include <KLocalizedString>
#include <QCheckBox>
......
......@@ -27,7 +27,6 @@
#include <KIO/ThumbCreator>
#include <QUrl>
#include <QLibrary>
#include <QVBoxLayout>
#include <QStandardPaths>
#include <QDialogButtonBox>
......
......@@ -23,7 +23,6 @@
#include "behaviorsettingspage.h"
#include "confirmationssettingspage.h"
#include "previewssettingspage.h"
#include <settings/settingspagebase.h>
#include "statusbarsettingspage.h"
#include <KLocalizedString>
......
......@@ -22,27 +22,19 @@
#include "dolphin_generalsettings.h"
#include "configurepreviewplugindialog.h"
#include <KConfigGroup>
#include <KLocalizedString>
#include <KServiceTypeTrader>
#include <KService>
#include <KIO/PreviewJob>
#include <settings/serviceitemdelegate.h>
#include <settings/servicemodel.h>
#include <QCheckBox>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QListView>
#include <QPainter>
#include <QScrollBar>
#include <QShowEvent>
#include <QSlider>
#include <QSpinBox>
#include <QSortFilterProxyModel>
#include <QVBoxLayout>
// default settings
namespace {
......
......@@ -27,7 +27,6 @@
#include <settings/general/previewssettingspage.h>
#include <settings/general/confirmationssettingspage.h>
#include <QDir>
#include <QVBoxLayout>
#include <QTabWidget>
......
......@@ -28,7 +28,6 @@
#include <QDBusConnection>
#include <QDBusMessage>
#include <QPushButton>
#include <QVBoxLayout>
#include <QTabWidget>
......
......@@ -19,15 +19,12 @@
#include "serviceitemdelegate.h"
#include "dolphindebug.h"
#include <QPushButton>
#include <QIcon>
#include "servicemodel.h"
#include <QAbstractItemView>
#include <QCheckBox>
#include <QModelIndex>
#include <QPainter>
ServiceItemDelegate::ServiceItemDelegate(QAbstractItemView* itemView, QObject* parent) :
......
......@@ -22,8 +22,6 @@
#include "dolphin_generalsettings.h"
#include "dolphin_versioncontrolsettings.h"
#include <KConfig>
#include <KConfigGroup>
#include <KDesktopFile>
#include <kdesktopfileactions.h>
#include <QIcon>
......@@ -33,19 +31,14 @@
#include <KPluginMetaData>
#include <KService>
#include <KServiceTypeTrader>
#include <QStandardPaths>
#include <settings/serviceitemdelegate.h>
#include <settings/servicemodel.h>
#include <QCheckBox>
#include <QGridLayout>
#include <QGroupBox>
#include <QLabel>
#include <QListWidget>
#include <QPushButton>
#include <QSortFilterProxyModel>
#include <QShowEvent>
namespace
{
......
......@@ -34,11 +34,8 @@
#include <QGroupBox>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>
#include <QFileDialog>
#include "views/dolphinview.h"
StartupSettingsPage::StartupSettingsPage(const QUrl& url, QWidget* parent) :
SettingsPageBase(parent),
m_url(url),
......
......@@ -30,7 +30,6 @@
#include <QCheckBox>
#include <QGroupBox>
#include <QLabel>
#include <QSlider>
#include <QVBoxLayout>
#include <QHelpEvent>
#include <QApplication>
......
......@@ -27,13 +27,9 @@
#include "dolphin_iconsmodesettings.h"
#include "viewpropsprogressinfo.h"
#include <config-baloo.h>
#include <KLocalizedString>
#include <KMessageBox>
#include <QUrl>
#include <KComboBox>
#include <KConfigGroup>
#include <KWindowConfig>
#include <QButtonGroup>
......@@ -43,8 +39,6 @@
#include <QLabel>
#include <QPushButton>
#include <QRadioButton>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <views/viewproperties.h>
......
......@@ -30,7 +30,6 @@
#include <KConfigGroup>
#include <KLocalizedString>
#include <KIO/Job>
#include <views/viewproperties.h>
......
......@@ -30,10 +30,8 @@
#include <QApplication>
#include <QHBoxLayout>
#include <QLabel>
#include <QProgressBar>
#include <QToolButton>
#include <QTime>
#include <QTimer>
#include <QSlider>
#include <QTextDocument>
......
......@@ -21,8 +21,6 @@
#include "mountpointobserver.h"
#include <QUrl>
SpaceInfoObserver::SpaceInfoObserver(const QUrl& url, QObject* parent) :
QObject(parent),
m_mountPointObserver(nullptr),
......