From 62440e8609ef1a686b5c80ffd8836985afe364f8 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Sat, 17 Apr 2021 21:53:55 +0200 Subject: [PATCH] Remove unneeded includes in models --- src/entriesmodel.cpp | 9 +++------ src/entriesmodel.h | 3 +-- src/queuemodel.cpp | 11 +++-------- src/queuemodel.h | 4 +--- 4 files changed, 8 insertions(+), 19 deletions(-) diff --git a/src/entriesmodel.cpp b/src/entriesmodel.cpp index 6c45bb85..bd6fd2c6 100644 --- a/src/entriesmodel.cpp +++ b/src/entriesmodel.cpp @@ -5,14 +5,11 @@ * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ -#include -#include -#include +#include -#include "database.h" -#include "datamanager.h" #include "entriesmodel.h" -#include "fetcher.h" +#include "entry.h" +#include "datamanager.h" EntriesModel::EntriesModel(Feed *feed) : QAbstractListModel(feed) diff --git a/src/entriesmodel.h b/src/entriesmodel.h index fe69e27c..653189dd 100644 --- a/src/entriesmodel.h +++ b/src/entriesmodel.h @@ -8,11 +8,10 @@ #pragma once #include +#include #include #include -#include -#include "entry.h" #include "feed.h" class EntriesModel : public QAbstractListModel diff --git a/src/queuemodel.cpp b/src/queuemodel.cpp index ee779659..2125b6b7 100644 --- a/src/queuemodel.cpp +++ b/src/queuemodel.cpp @@ -4,16 +4,11 @@ * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ -#include -#include -#include -#include -#include +#include -#include "database.h" -#include "datamanager.h" #include "queuemodel.h" -#include "fetcher.h" +#include "entry.h" +#include "datamanager.h" QueueModel::QueueModel(QObject *parent) : QAbstractListModel(parent) diff --git a/src/queuemodel.h b/src/queuemodel.h index f556d31c..359bb2a2 100644 --- a/src/queuemodel.h +++ b/src/queuemodel.h @@ -9,9 +9,7 @@ #include #include #include -#include - -#include "entry.h" +#include class QueueModel : public QAbstractListModel {