Commit 457fd4d2 authored by Laurent Montel's avatar Laurent Montel 😁

If include is define in .h remove it if it's defined in .cpp too (scripted)

parent 29cd276f
......@@ -37,7 +37,6 @@
#include "wheelinterceptor.h"
#include "windowsystem.h"
#include <QQmlEngine>
void KickerPlugin::registerTypes(const char *uri)
{
......
......@@ -22,7 +22,6 @@
#include "actionlist.h"
#include "debug.h"
#include <QTimer>
PlaceholderModel::PlaceholderModel(QObject *parent)
: AbstractModel(parent)
......
......@@ -20,7 +20,6 @@
#include "windowsystem.h"
#include <QQuickItem>
#include <QQuickWindow>
#include <KWindowSystem>
......
......@@ -29,7 +29,6 @@
#include <QApplication>
#include <QDBusMessage>
#include <QDBusObjectPath>
#include <QDBusServiceWatcher>
static const char* DBUS_SERVICE = "org.kde.kappmenu";
......
......@@ -29,7 +29,6 @@
#include "dbusmenutypes_p.h"
#include <QDBusMessage>
#include <QDBusObjectPath>
#include <QDBusServiceWatcher>
#include <KWindowSystem>
......
......@@ -28,7 +28,6 @@
#include <QCoreApplication>
#include <QKeyEvent>
#include <QEvent>
#include <QMenu>
#include <QMouseEvent>
VerticalMenu::VerticalMenu(QWidget* parent) : QMenu(parent)
......
......@@ -19,7 +19,6 @@
*/
#include "abstractlayoutmanager.h"
#include "appletslayout.h"
#include "itemcontainer.h"
#include <cmath>
......
......@@ -19,7 +19,6 @@
#include "containmentlayoutmanagerplugin.h"
#include <QQmlEngine>
#include <QQmlContext>
#include <QQuickItem>
......
......@@ -44,7 +44,6 @@
#include <KPackage/PackageLoader>
#include "kcategorizeditemsviewmodels_p.h"
#include "plasmaappletitemmodel_p.h"
#include "openwidgetassistant_p.h"
#include "config-workspace.h"
......
......@@ -19,7 +19,6 @@
#include "activityengine.h"
#include "activityservice.h"
#include "ActivityRankingInterface.h"
#include <kactivities/controller.h>
#include <kactivities/info.h>
......
......@@ -17,7 +17,6 @@
*/
#include "jobaction.h"
#include "kuiserverengine.h"
#include <kio/global.h>
#include <klocalizedstring.h>
......
......@@ -25,10 +25,8 @@
#include <KFormat>
#include <KLocalizedString>
#include <Plasma/DataEngine>
#include "notifications.h"
#include "jobsmodel.h"
#include <algorithm>
......
......@@ -18,7 +18,6 @@
#include "executable.h"
#include <QDebug>
#include <KProcess>
ExecutableContainer::ExecutableContainer(const QString& command, QObject* parent)
: Plasma::DataContainer(parent), m_process(nullptr)
{
......
......@@ -18,7 +18,6 @@
*/
#include "hotplugjob.h"
#include "hotplugengine.h"
#include "deviceserviceaction.h"
......
......@@ -20,7 +20,6 @@
#include "keystate.h"
#include <klocalizedstring.h>
#include <kmodifierkeyinfo.h>
#include "keyservice.h"
KeyStatesEngine::KeyStatesEngine(QObject *parent, const QVariantList &args)
......
......@@ -20,7 +20,6 @@
#include "multiplexedservice.h"
#include "multiplexer.h"
#include "playercontrol.h"
#include <mprisplayer.h>
#include <KLocalizedString>
......
......@@ -20,7 +20,6 @@
#include "playercontrol.h"
#include "playeractionjob.h"
#include "playercontainer.h"
#include <dbusproperties.h>
#include <mprisplayer.h>
......
......@@ -17,7 +17,6 @@
*/
#include "notificationaction.h"
#include "notificationsengine.h"
#include "server.h"
......
......@@ -25,7 +25,6 @@
#include <solid/devicenotifier.h>
#include <solid/device.h>
#include <solid/deviceinterface.h>
#include <solid/battery.h>
#include <solid/powermanagement.h>
#include <klocalizedstring.h>
......
......@@ -27,7 +27,6 @@
#include <QApplication>
#include <QDebug>
#include <KFormat>
#include <KIO/FileSystemFreeSpaceJob>
#include <KNotification>
#include <Plasma/DataContainer>
......
......@@ -17,7 +17,6 @@
*/
#include "soliddevicejob.h"
#include "soliddeviceengine.h"
#include <solid/device.h>
#include <solid/opticaldisc.h>
......
......@@ -34,7 +34,6 @@
#include <QDBusPendingReply>
#include <QVariantMap>
#include <QImage>
#include <QMenu>
#include <QPixmap>
#include <QSysInfo>
......
......@@ -20,14 +20,12 @@
#include "weatherengine.h"
#include <QTimer>
#include <KSycoca>
#include <Plasma/DataContainer>
#include <Plasma/PluginLoader>
#include "ions/ion.h"
#include "weatherenginedebug.h"
// Constructor
......
......@@ -20,10 +20,8 @@
#include "freespacenotifier.h"
#include <KLocalizedString>
#include <KNotification>
#include <KNotificationJobUiDelegate>
#include <KService>
#include <KIO/ApplicationLauncherJob>
#include <KIO/FileSystemFreeSpaceJob>
......
......@@ -23,14 +23,12 @@
#include "debug.h"
#include <QByteArray>
#include <QCoreApplication>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDBusServiceWatcher>
#include <QDir>
#include <QFileInfo>
#include <QHash>
#include <QStandardPaths>
#include <QTimer>
......@@ -41,7 +39,6 @@
#include <QX11Info>
#include <xcb/xcb.h>
#include <xcb/xcb_atom.h>
#include "window.h"
......
......@@ -29,7 +29,6 @@
#include <QUrl>
#include <KConfigGroup>
#include <KColorScheme>
#include <KMessageBox>
#include <KStandardGuiItem>
#include <KWindowSystem>
......
......@@ -20,7 +20,6 @@
#include <KLocalizedString>
#include <KConfig>
#include <KConfigGroup>
#include <QStringList>
#include <QDir>
#include <QX11Info>
......
......@@ -35,7 +35,6 @@
#include <KSharedConfig>
#include <algorithm>
#include <memory>
ThemesModel::ThemesModel(QObject *parent) : QAbstractListModel(parent)
{
......
......@@ -20,7 +20,6 @@
#include "feedback.h"
#include <KSharedConfig>
#include <KConfigGroup>
#include <KPluginFactory>
#include <KAboutData>
......
......@@ -21,7 +21,6 @@
#include <QDebug>
#include <KWindowSystem>
#include "kxftconfig.h"
namespace {
bool defaultExclude()
......
......@@ -19,7 +19,6 @@
#include "kxftconfig.h"
#include "previewrenderengine.h"
#include "Fc.h"
......
......@@ -29,7 +29,6 @@
#include <QTextStream>
#include <QFile>
#include <QPainter>
#include <QFont>
#include <QFontDatabase>
#include <QFontMetrics>
#include <QWidget>
......
......@@ -36,11 +36,8 @@
#include <fontconfig/fontconfig.h>
#include "Folder.h"
#include "FcConfig.h"
#include "Misc.h"
#include "KfiConstants.h"
#include "XmlStrings.h"
#include "Style.h"
#include "File.h"
#include "config-fontinst.h"
#define DISABLED_FONTS "disabledfonts"
......
......@@ -21,7 +21,6 @@
* Boston, MA 02110-1301, USA.
*/
#include <QDBusConnection>
#include <QTimer>
#include <QDebug>
#include <KAuth>
......@@ -36,7 +35,6 @@
#include "Fc.h"
#include "WritingSystems.h"
#include "Utils.h"
#include "FontinstIface.h"
#define KFI_DBUG qDebug() << time(nullptr)
......
......@@ -23,7 +23,6 @@
#include "ActionLabel.h"
#include <KIconLoader>
#include <QLabel>
#include <QTimer>
#include <QPixmap>
#include <QMatrix>
......
......@@ -23,11 +23,9 @@
#include "DuplicatesDialog.h"
#include "ActionLabel.h"
#include "Misc.h"
#include "Fc.h"
#include "FcEngine.h"
#include "FontList.h"
#include "JobRunner.h"
#include <KIconLoader>
#include <KMessageBox>
#include <KFileItem>
......
......@@ -34,10 +34,8 @@
#include <QStyleOption>
#include <QSet>
#include <QString>
#include <QMenu>
#include <QMouseEvent>
#include <QApplication>
#include <QActionGroup>
namespace KFI
{
......
......@@ -48,9 +48,6 @@
#include "GroupList.h"
#include "FontInstInterface.h"
#include "XmlStrings.h"
#include "Family.h"
#include "Style.h"
#include "File.h"
namespace KFI
{
......
......@@ -22,7 +22,6 @@
*/
#include "GroupList.h"
#include "FontList.h"
#include <KIconLoader>
#include <KMessageBox>
#include <QSaveFile>
......
......@@ -54,7 +54,6 @@
#include <KAboutData>
#include <KToolBar>
#include <KMessageBox>
#include <KIO/Job>
#include <KIO/StatJob>
#include <KJobWidgets>
#include <KGuiItem>
......
......@@ -27,7 +27,6 @@
#include <QMap>
#include <QVector>
#include <QDir>
#include <QFile>
#include <QByteArray>
#include <QTextCodec>
#include <QTextStream>
......@@ -35,7 +34,6 @@
#include <QTemporaryFile>
#include <QStandardPaths>
#include <QUrlQuery>
#include <unistd.h>
#include <ctype.h>
namespace KFI
......
......@@ -23,7 +23,6 @@
#include "FontThumbnail.h"
#include "KfiConstants.h"
#include "FcEngine.h"
#include <QImage>
#include <QApplication>
#include <QPalette>
......
......@@ -22,10 +22,8 @@
*/
#include "FontPreview.h"
#include "FcEngine.h"
#include "CharTip.h"
#include <QPainter>
#include <QPaintEvent>
#include <QMouseEvent>
#include <QWheelEvent>
#include <stdlib.h>
......
......@@ -22,8 +22,6 @@
*/
#include "FontViewPart.h"
#include "Misc.h"
#include "KfiConstants.h"
#include "FcEngine.h"
#include "PreviewSelectAction.h"
#include "FontInstInterface.h"
......@@ -32,7 +30,6 @@
#include <QGuiApplication>
#include <QBoxLayout>
#include <QPushButton>
#include <QFrame>
#include <QFile>
#include <QLabel>
#include <QRegExp>
......
......@@ -20,7 +20,6 @@
#include <QDir>
#include <QUrl>
#include <QDBusInterface>
#include <QDBusReply>
#include <QStandardPaths>
......@@ -29,7 +28,6 @@
#include <KNS3/DownloadDialog>
#include "gtkpage.h"
#include "gtkthemesmodel.h"
GtkPage::GtkPage(QObject *parent)
: QObject(parent)
......
......@@ -57,7 +57,6 @@
#include "previewitem.h"
#include "stylesettings.h"
#include "styledata.h"
#include "gtkpage.h"
K_PLUGIN_FACTORY_WITH_JSON(KCMStyleFactory, "kcm_style.json", registerPlugin<KCMStyle>();registerPlugin<StyleData>();)
......
......@@ -20,7 +20,6 @@
#include "klipper_debug.h"
#include <QMap>
#include <QPixmap>
#include <kurlmimedata.h>
......
......@@ -30,7 +30,6 @@
#include <QDialog>
#include <QMenu>
#include <QMessageBox>
#include <QPointer>
#include <QDBusConnection>
#include <QSaveFile>
#include <QtConcurrent>
......@@ -45,7 +44,6 @@
#include "configdialog.h"
#include "klippersettings.h"
#include "urlgrabber.h"
#include "history.h"
#include "historyitem.h"
#include "historymodel.h"
......
......@@ -25,7 +25,6 @@
#include <KLocalizedString>
#include "historyitem.h"
#include "history.h"
#include "klipperpopup.h"
PopupProxy::PopupProxy( KlipperPopup* parent, int menu_height, int menu_width )
......
......@@ -22,7 +22,6 @@
#include "klipper_debug.h"
#include <QMimeDatabase>
#include <QHash>
#include <QIcon>
#include <QTimer>
#include <QUuid>
......
......@@ -44,7 +44,6 @@
#include <KWayland/Client/connection_thread.h>
#include <KWayland/Client/registry.h>
#include <KWayland/Client/surface.h>
#include <KWayland/Client/plasmashell.h>
#include "appadaptor.h"
......
......@@ -41,7 +41,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <time.h>
#include <krandom.h>
#include "server.h"
extern KSMServer* the_server;
......
......@@ -67,7 +67,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <QPushButton>
#include <QRegularExpression>
#include <QDBusConnection>
#include <QDBusMessage>
#include <QSocketNotifier>
#include <QStandardPaths>
#include <QDebug>
......
......@@ -22,12 +22,9 @@
#include "abstractnotificationsmodel_p.h"
#include "debug.h"
#include "server.h"
#include "utils_p.h"
#include "notifications.h"
#include "notification.h"
#include "notification_p.h"
#include <QDebug>
......
......@@ -25,7 +25,6 @@
#include <KService>
#include "notifications.h"
using namespace NotificationManager;
......
......@@ -19,7 +19,6 @@
*/
#include "job_p.h"
#include "job.h"
#include "debug.h"
......@@ -33,7 +32,6 @@
#include <kio/global.h>
#include "notifications.h"
#include "jobviewv2adaptor.h"
#include "jobviewv3adaptor.h"
......
......@@ -21,11 +21,9 @@
#include "jobsmodel.h"
#include "jobsmodel_p.h"
#include "notifications.h"
#include "utils_p.h"
#include <QDebug>
#include <QScopedPointer>
#include <KJob>
......
......@@ -23,12 +23,9 @@
#include "notification.h"
#include "notification_p.h"