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 4947d595 authored by Laurent Montel's avatar Laurent Montel 😁

Clean includes

parent 5df3981a
......@@ -18,11 +18,8 @@
*/
#include "gearyaddressbook.h"
#include <KContacts/Addressee>
#include <QUrl>
#include <QSettings>
GearyAddressBook::GearyAddressBook(const QString &filename)
{
......
......@@ -21,7 +21,6 @@
#include "coisceimpart.h"
#include <QAction>
#include <kactioncollection.h>
#include <kstandardaction.h>
......@@ -29,9 +28,6 @@
#include <QtCore/QFile>
#include <QtCore/QTextStream>
#include <QTimer>
#include <QTextEdit>
#include <QLabel>
K_PLUGIN_FACTORY(CoisceimPartFactory, registerPlugin<CoisceimPart>();
)
......
......@@ -22,12 +22,11 @@
#include "coisceimwidget.h"
// #include "coisceimwidgetadaptor.h"
#include <QVBoxLayout>
#include <QSplitter>
#include <QListView>
#include <QTreeView>
#include <QHBoxLayout>
#include <AkonadiCore/ChangeRecorder>
#include <AkonadiCore/ItemFetchScope>
......
......@@ -22,7 +22,6 @@
#include "createtripwidget.h"
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <kconfig.h>
......
......@@ -23,7 +23,6 @@
#include <QHBoxLayout>
#include <QPushButton>
#include <QTextBrowser>
#include <QTreeView>
#include <KLocalizedString>
......@@ -33,7 +32,6 @@
#include <AkonadiCore/ItemFetchScope>
#include <KCalCore/Event>
#include <KConfigGroup>
#include <QVBoxLayout>
#include <QDialogButtonBox>
......
......@@ -21,7 +21,6 @@
#include "foldercontentswidget.h"
#include <QAbstractItemModel>
#include <QItemSelectionModel>
#include <QVBoxLayout>
#include <QPushButton>
......
......@@ -22,7 +22,6 @@
#include "itemselection.h"
#include <QItemSelectionModel>
#include <QDebug>
#include <AkonadiCore/EntityTreeModel>
#include <KCalCore/Todo>
#include <KMime/Message>
......
......@@ -23,8 +23,6 @@
#include "itemviewerwidget.h"
#include <QItemSelectionModel>
#include <QItemSelectionRange>
#include <QStackedWidget>
#include <QVBoxLayout>
......
......@@ -23,10 +23,10 @@
#include "noteviewer.h"
#include <QHBoxLayout>
#include <QLineEdit>
#include <QTextEdit>
#include <QEvent>
#include <QVBoxLayout>
#include <AkonadiCore/entitytreemodel.h>
#include <AkonadiCore/item.h>
......
......@@ -21,7 +21,6 @@
#include "qmllistselectionmodel.h"
#include <QDebug>
#include <AkonadiCore/EntityTreeModel>
QMLListSelectionModel::QMLListSelectionModel(QItemSelectionModel *selectionModel, QObject *parent)
......
......@@ -26,7 +26,6 @@
#include <AkonadiCore/collection.h>
#include "itemselection.h"
#include <QItemSelectionModel>
class QSortFilterProxyModel;
class TripComponentFactory;
......
......@@ -25,7 +25,6 @@
#include <QLineEdit>
#include <QComboBox>
#include <QVBoxLayout>
#include <QTimer>
#include <AkonadiCore/monitor.h>
#include <AkonadiCore/entitytreemodel.h>
......
......@@ -23,10 +23,10 @@
#include "noteviewer.h"
#include <QHBoxLayout>
#include <QLineEdit>
#include <QTextEdit>
#include <QEvent>
#include <QVBoxLayout>
#include <AkonadiCore/entitytreemodel.h>
#include <AkonadiCore/item.h>
......
......@@ -33,7 +33,6 @@
#include <KAboutData>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QVBoxLayout>
......
......@@ -27,7 +27,6 @@
#include <Akonadi/Contact/ContactViewer>
#include <QDialogButtonBox>
#include <KConfigGroup>
#include <QPushButton>
#include <QApplication>
#include <KAboutData>
......
......@@ -16,7 +16,6 @@
#include <Akonadi/KMime/MessageParts>
#include <QAction>
#include <KConfigDialog>
#include <KActionCollection>
#include <KLocalizedString>
#include <KStandardAction>
......
......@@ -12,7 +12,6 @@
#include <KConfigDialog>
#include <KLocalizedString>
#include <QLabel>
#include <QHBoxLayout>
#include <QDebug>
#include <QUrl>
......
......@@ -17,7 +17,6 @@
#include "rot13plugineditor.h"
#include "rot13plugineditorinterface.h"
#include <KLocalizedString>
#include <kpluginfactory.h>
K_PLUGIN_FACTORY_WITH_JSON(Rot13PluginEditorFactory, "kmail_rot13editorplugin.json", registerPlugin<Rot13PluginEditor>();
......
......@@ -22,7 +22,6 @@
#include <kaddressbookimportexport/kaddressbookimportexportcontactfields.h>
#include <KContacts/Addressee>
#include <QDialog>
......
......@@ -23,7 +23,6 @@
#include <QMap>
#include <QPair>
#include <QStringList>
#include <QVector>
CsvParser::CsvParser(QObject *parent)
......
......@@ -22,7 +22,6 @@
#include <KActionCollection>
#include <QAction>
#include <QPointer>
#include <KAddressBookImportExport/KAddressBookImportExportContactList>
#include <Libkdepim/LdapSearchDialog>
#include "../shared/importexportengine.h"
......
......@@ -20,8 +20,6 @@
#include "importexportengine.h"
#include <AkonadiWidgets/CollectionDialog>
#include <KContacts/Addressee>
#include <KContacts/ContactGroup>
#include <AkonadiCore/ItemCreateJob>
#include <KLocalizedString>
#include <QProgressDialog>
......
......@@ -18,7 +18,6 @@
*/
#include "checkgravatarplugintest.h"
#include <QTest>
CheckGravatarPluginTest::CheckGravatarPluginTest(QObject *parent)
: QObject(parent)
......
......@@ -17,7 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#include <KLocalizedString>
#include <QApplication>
#include <QCommandLineParser>
#include <QStandardPaths>
......
......@@ -19,8 +19,6 @@
#include "sendvcardsjob.h"
#include <KContacts/Addressee>
#include <KContacts/ContactGroup>
#include <AkonadiCore/Item>
#include <AkonadiCore/ItemFetchJob>
#include <AkonadiCore/ItemFetchScope>
......@@ -30,7 +28,6 @@
#include <QTemporaryDir>
#include <QFile>
#include <KLocalizedString>
#include <QDesktopServices>
#include <KToolInvocation>
using namespace KABSendVCards;
......
......@@ -21,7 +21,6 @@
#define AUTOCORRECTIONPLUGINEDITORINTERFACE_H
#include <messagecomposer/plugineditorinterface.h>
#include <QPointer>
class AutoCorrectionPluginEditorInterface : public MessageComposer::PluginEditorInterface
{
......
......@@ -21,7 +21,6 @@
#define NONBREAKINGSPACEPLUGINEDITORINTERFACE_H
#include <messagecomposer/plugineditorinterface.h>
#include <QPointer>
class NonBreakingSpacePluginEditorInterface : public MessageComposer::PluginEditorInterface
{
......
......@@ -19,7 +19,6 @@
#include "automaticaddcontactsconfiguredialog.h"
#include "automaticaddcontactsconfigurewidget.h"
#include <KIdentityManagement/IdentityManager>
#include <KLocalizedString>
AutomaticAddContactsConfigureDialog::AutomaticAddContactsConfigureDialog(QWidget *parent)
......
......@@ -21,12 +21,8 @@
#include "automaticaddcontactsconfigurewidget.h"
#include <AkonadiCore/Collection>
#include <AkonadiWidgets/CollectionComboBox>
#include <KContacts/Addressee>
#include <KLocalizedString>
#include <QCheckBox>
#include <QVBoxLayout>
#include <QLabel>
#include <KConfigGroup>
#include <KSharedConfig>
AutomaticAddContactsConfigureWidget::AutomaticAddContactsConfigureWidget(QWidget *parent)
......
......@@ -22,7 +22,6 @@
#include "automaticaddcontactsconfigurewidget.h"
#include "automaticaddcontactsconfiguredialog.h"
#include <KLocalizedString>
#include <QPointer>
#include <kpluginfactory.h>
......
......@@ -20,8 +20,8 @@
#include "checkbeforesendupdatesmtpdialogtest.h"
#include "checkbeforesendupdatesmtpdialog.h"
#include <QCheckBox>
#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QTest>
QTEST_MAIN(CheckBeforeSendUpdateSmtpDialogTest)
......
......@@ -22,7 +22,6 @@
#include "configurewidget/checkbeforesendconfigurewidget.h"
#include "configurewidget/checkbeforesendconfiguredialog.h"
#include <KLocalizedString>
#include <QPointer>
#include <kpluginfactory.h>
......
......@@ -19,7 +19,6 @@
#include "confirmaddressconfiguredialog.h"
#include "confirmaddressconfigurewidget.h"
#include <KIdentityManagement/IdentityManager>
#include <KLocalizedString>
ConfirmAddressConfigureDialog::ConfirmAddressConfigureDialog(QWidget *parent)
......
......@@ -19,7 +19,6 @@
#include "confirmaddressconfiguretab.h"
#include "confirmaddressconfigurewidget.h"
#include <KLocalizedString>
#include <QCheckBox>
#include <QVBoxLayout>
#include <KConfigGroup>
......
......@@ -22,7 +22,6 @@
#include <QWidget>
#include <MessageComposer/PluginEditorCheckBeforeSendConfigureWidget>
class QCheckBox;
class ConfirmAddressConfigureTab;
class ConfirmAddressConfigureWidget : public MessageComposer::PluginEditorCheckBeforeSendConfigureWidget
{
......
......@@ -23,10 +23,8 @@
#include "confirmaddresscheckjob.h"
#include <QPointer>
#include <QDebug>
#include <KConfigGroup>
#include <KSharedConfig>
#include <KEmailAddress>
#include <KIdentityManagement/IdentityManager>
#include <KIdentityManagement/Identity>
......
......@@ -22,7 +22,6 @@
#include "confirmaddressconfigurewidget.h"
#include "confirmaddressconfiguredialog.h"
#include <KLocalizedString>
#include <QPointer>
#include <kpluginfactory.h>
......
......@@ -62,7 +62,6 @@
#include <QVBoxLayout>
#include <QCheckBox>
#include <QListWidget>
#include <KHelpClient>
#include <QPushButton>
#include <KConfigGroup>
......
......@@ -94,8 +94,7 @@ index e50da4a..f0b9f69 100644
--- a/src/agentconfigmodel.cpp
+++ b/src/agentconfigmodel.cpp
@@ -24,7 +24,7 @@
#include <KLocalizedString>
#include "akonadiconsole_debug.h"
#include "akonadiconsole_debug.h"
-AgentConfigModel::AgentConfigModel(QObject *parent): QAbstractTableModel(parent), m_interface(Q_NULLPTR)
+AgentConfigModel::AgentConfigModel(QObject *parent): QAbstractTableModel(parent), m_interface(nullptr)
......
......@@ -22,7 +22,6 @@
#include <LibkdepimAkonadi/AddresseeLineEdit>
#include <QHBoxLayout>
#include <KLocalizedString>
#include <qcheckbox.h>
......
......@@ -38,6 +38,8 @@
#include "syncitiphandler.h"
#include "reactiontoinvitationdialog.h"
#include <KIdentityManagement/IdentityManager>
#include <MessageViewer/BodyPartURLHandler>
#include <MessageViewer/MessageViewerSettings>
#include <MessageViewer/Viewer>
......@@ -54,7 +56,6 @@ using namespace KCalCore;
#include <KMime/Message>
#include <KIdentityManagement/Identity>
#include <KIdentityManagement/IdentityManager>
#include <KEmailAddress>
......@@ -66,7 +67,6 @@ using namespace KCalCore;
#include <KDBusServiceStarter>
#include <KMessageBox>
#include <KRun>
#include <KSystemTimeZone>
#include <KIO/FileCopyJob>
#include <KIO/StatJob>
#include <KLocalizedString>
......@@ -79,7 +79,6 @@ using namespace KCalCore;
#include <QIcon>
#include <QFileDialog>
#include <QMimeDatabase>
#include <QMimeType>
#include <QDesktopServices>
#include <QInputDialog>
#include <QMenu>
......
......@@ -20,7 +20,6 @@
#ifndef GNUPGWKSURLHANDLER_H_
#define GNUPGWKSURLHANDLER_H_
#include <QtGlobal>
#include <MessageViewer/BodyPartURLHandler>
#include <KMime/Message>
......
......@@ -21,7 +21,6 @@
#include "pgpkeymessagepart.h"
#include "pgpkeymemento.h"
#include <QUrl>
#include <QApplication>
#include <QPalette>
......
......@@ -20,7 +20,6 @@
#ifndef PGPKEYURLHANDLER_H
#define PGPKEYURLHANDLER_H
#include <QtGlobal>
#include <MessageViewer/BodyPartURLHandler>
class QUrlQuery;
......
......@@ -34,6 +34,10 @@
#include "updatecontactjob.h"
#include "vcardmemento.h"
#include <KContacts/VCardConverter>
#include <KContacts/Addressee>
#include <MessageViewer/BodyPartURLHandler>
#include <MimeTreeParser/BodyPartFormatter>
#include <MimeTreeParser/BodyPart>
......@@ -46,8 +50,6 @@ using MimeTreeParser::Interface::BodyPart;
#include <Akonadi/Contact/ContactViewer>
#include <Akonadi/Contact/StandardContactFormatter>
#include <KContacts/VCardConverter>
#include <KContacts/Addressee>
#include <KLocalizedString>
#include <KIconLoader>
......@@ -55,9 +57,7 @@ using MimeTreeParser::Interface::BodyPart;
#include <QFileDialog>
#include <QIcon>
#include <QMenu>
#include <KMessageBox>
#include <QTemporaryFile>
#include <KJobWidgets>
#include <KIO/StatJob>
#include <KIO/FileCopyJob>
#include "vcard_debug.h"
......
......@@ -20,10 +20,10 @@
#include "viewerplugincreateeventtest.h"
#include "../createeventplugin/viewerplugincreateevent.h"
#include <KActionCollection>
#include <QBoxLayout>
#include <QTest>
#include <QStandardItemModel>
#include <messageviewer/viewerplugininterface.h>
#include <QHBoxLayout>
namespace MessageViewer {
extern MESSAGEVIEWER_EXPORT QAbstractItemModel *_k_eventEditStubModel;
......
......@@ -24,7 +24,7 @@
#include <AkonadiCore/Relation>
#include <KMime/Message>
#include <QApplication>
#include <QCoreApplication>
using namespace MessageViewer;
......
......@@ -30,7 +30,6 @@
#include <QEvent>
#include <QKeyEvent>
#include <QLabel>
#include <QTemporaryFile>
#include <AkonadiWidgets/CollectionComboBox>
......
......@@ -24,8 +24,8 @@
#include <KLocalizedString>
#include <KActionCollection>
#include <QHBoxLayout>
#include <QAction>
#include <QLayout>
using namespace MessageViewer;
......
......@@ -19,7 +19,6 @@
#include "viewerpluginexternalscripttest.h"
#include <QTest>
ViewerPluginExternalscriptTest::ViewerPluginExternalscriptTest(QObject *parent)
: QObject(parent)
......
......@@ -30,7 +30,6 @@
#include <QPointer>
#include <QFile>
#include <QFileInfo>
#include <QDebug>
#include <KDesktopFile>
#include <KConfigGroup>
......
......@@ -18,9 +18,7 @@
*/
#include "viewerpluginexternaleditwidget.h"
#include <QVBoxLayout>
#include <KLocalizedString>
#include <QLabel>
#include <KLineEdit>
#include <QFormLayout>
#include <KUrlRequester>
......
......@@ -20,10 +20,8 @@
#include "templateparseremailaddressrequesterakonaditest.h"
#include "../templateparseremailaddressrequesterakonadi.h"
#include <QHBoxLayout>
#include <QLineEdit>
#include <QSignalSpy>
#include <QTest>
#include <QDebug>
#include <Akonadi/Contact/EmailAddressRequester>
TemplateParserEmailAddressRequesterAkonadiTest::TemplateParserEmailAddressRequesterAkonadiTest(QObject *parent)
......
......@@ -24,7 +24,6 @@
#include "../lib/widgets/adblockpluginurlinterceptorconfiguredialog.h"
#include <WebEngineViewer/NetworkPluginUrlInterceptorInterface>
#include <kpluginfactory.h>
#include <KLocalizedString>
K_PLUGIN_FACTORY_WITH_JSON(AdblockPluginUrlInterceptorFactory, "messageviewer_adblockurlinterceptor.json", registerPlugin<AdblockPluginUrlInterceptor>();
)
......
......@@ -21,11 +21,10 @@
#include "../widgets/adblockautomaticruleslistwidget.h"
#include <QCommandLineParser>
#include <QHBoxLayout>
#include <QApplication>
#include <QStandardPaths>
#include <QVBoxLayout>
#include <QFileDialog>
AdBlockAutomaticRulesListWidgetTest::AdBlockAutomaticRulesListWidgetTest(const QString &fileName, QWidget *parent)
: QWidget(parent)
{
......
......@@ -29,7 +29,6 @@
#include <KConfigGroup>
#include <KSharedConfig>
#include <QHeaderView>
#include <QWebEngineView>
#include <QMenu>
#include <QClipboard>
#include <QApplication>
......
......@@ -24,7 +24,6 @@
#include <QDialogButtonBox>
#include <QStandardPaths>
#include <QAbstractButton>
#include <KSieveUi/SieveImapAccountSettings>
SelectImapFolderDialogTest::SelectImapFolderDialogTest(QObject *parent)
: QObject(parent)
......
......@@ -19,11 +19,9 @@
#include "selectimapfolderwidgettest.h"
#include "../selectimapfolderwidget.h"
#include <KSieveUi/SieveImapAccountSettings>
#include <QHBoxLayout>
#include <QTreeView>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QTest>
SelectImapFolderWidgetTest::SelectImapFolderWidgetTest(QObject *parent)
......
......@@ -24,14 +24,13 @@
#include "selectimapfoldermodel.h"
#include "imapfoldercompletionplugin_debug.h"
#include <KMessageBox>
#include <QHBoxLayout>
#include <QTreeView>
#include <QStandardItemModel>
#include <QHeaderView>
#include <QLineEdit>
#include <QPainter>
#include <QInputDialog>
#include <QSortFilterProxyModel>
#include <QVBoxLayout>
#include <KLocalizedString>
#if (QT_VERSION < QT_VERSION_CHECK(5, 10, 0))
......
......@@ -20,7 +20,6 @@
#include "selectimaplineedit.h"
#include "selectimaplineeditcompletermodel.h"
#include <QCompleter>
#include <QAbstractProxyModel>
//#define COMPLETION_LINE_EDIT 1
SelectImapLineEdit::SelectImapLineEdit(QWidget *parent)
: QLineEdit(parent)
......
......@@ -21,7 +21,6 @@
#include <KPluginLoader>
#include <QHBoxLayout>
#include <kpluginfactory.h>
#include <KSieveUi/AbstractMoveImapFolderWidget>
#include <QDebug>
#include <QLabel>