Remove unneeded includes in models

This commit is contained in:
Bart De Vries 2021-04-17 21:53:55 +02:00
parent b8b8a312e9
commit 62440e8609
4 changed files with 8 additions and 19 deletions

View File

@ -5,14 +5,11 @@
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
#include <QAbstractListModel> #include <QString>
#include <QVariant>
#include <QVector>
#include "database.h"
#include "datamanager.h"
#include "entriesmodel.h" #include "entriesmodel.h"
#include "fetcher.h" #include "entry.h"
#include "datamanager.h"
EntriesModel::EntriesModel(Feed *feed) EntriesModel::EntriesModel(Feed *feed)
: QAbstractListModel(feed) : QAbstractListModel(feed)

View File

@ -8,11 +8,10 @@
#pragma once #pragma once
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QVariant>
#include <QHash> #include <QHash>
#include <QObject> #include <QObject>
#include <QString>
#include "entry.h"
#include "feed.h" #include "feed.h"
class EntriesModel : public QAbstractListModel class EntriesModel : public QAbstractListModel

View File

@ -4,16 +4,11 @@
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
#include <QAbstractListModel> #include <QString>
#include <QVariant>
#include <QVector>
#include <QSqlQuery>
#include <QFile>
#include "database.h"
#include "datamanager.h"
#include "queuemodel.h" #include "queuemodel.h"
#include "fetcher.h" #include "entry.h"
#include "datamanager.h"
QueueModel::QueueModel(QObject *parent) QueueModel::QueueModel(QObject *parent)
: QAbstractListModel(parent) : QAbstractListModel(parent)

View File

@ -9,9 +9,7 @@
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QHash> #include <QHash>
#include <QObject> #include <QObject>
#include <QString> #include <QVariant>
#include "entry.h"
class QueueModel : public QAbstractListModel class QueueModel : public QAbstractListModel
{ {