Remove redundant includes

This commit is contained in:
Jonas Kvinge 2019-03-22 23:23:50 +01:00
parent 046c822604
commit b066158a4b
12 changed files with 18 additions and 32 deletions

View File

@ -34,7 +34,6 @@
#include <QSystemTrayIcon> #include <QSystemTrayIcon>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QModelIndex>
#include <QPersistentModelIndex> #include <QPersistentModelIndex>
#include <QMenu> #include <QMenu>
#include <QAction> #include <QAction>

View File

@ -29,7 +29,6 @@
#include <QObject> #include <QObject>
#include <QMimeData> #include <QMimeData>
#include <QModelIndex>
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QAbstractProxyModel> #include <QAbstractProxyModel>
#include <QPersistentModelIndex> #include <QPersistentModelIndex>

View File

@ -23,7 +23,6 @@
#include <QtGlobal> #include <QtGlobal>
#include <QObject> #include <QObject>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QModelIndex>
#include <QMetaType> #include <QMetaType>
#include <QDateTime> #include <QDateTime>
#include <QVariant> #include <QVariant>

View File

@ -26,11 +26,10 @@
#include <stdbool.h> #include <stdbool.h>
#include <QObject> #include <QObject>
#include <QModelIndex>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QList> #include <QList>
#include <QVariant>
#include <QPair> #include <QPair>
#include <QVariant>
class MultiSortFilterProxy : public QSortFilterProxyModel { class MultiSortFilterProxy : public QSortFilterProxyModel {
public: public:

View File

@ -25,7 +25,6 @@
#include <QObject> #include <QObject>
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QModelIndex>
template <typename T> template <typename T>
class SimpleTreeModel : public QAbstractItemModel { class SimpleTreeModel : public QAbstractItemModel {

View File

@ -22,9 +22,6 @@
#include <QtGlobal> #include <QtGlobal>
#include <QObject> #include <QObject>
#include <QModelIndex>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QMap> #include <QMap>
#include <QSet> #include <QSet>
@ -39,8 +36,8 @@
StandardItemIconLoader::StandardItemIconLoader(AlbumCoverLoader *cover_loader, QObject *parent) StandardItemIconLoader::StandardItemIconLoader(AlbumCoverLoader *cover_loader, QObject *parent)
: QObject(parent), : QObject(parent),
cover_loader_(cover_loader), cover_loader_(cover_loader),
model_(nullptr) model_(nullptr) {
{
cover_options_.desired_height_ = 16; cover_options_.desired_height_ = 16;
connect(cover_loader_, SIGNAL(ImageLoaded(quint64, QImage)), SLOT(ImageLoaded(quint64, QImage))); connect(cover_loader_, SIGNAL(ImageLoaded(quint64, QImage)), SLOT(ImageLoaded(quint64, QImage)));

View File

@ -27,7 +27,6 @@
#include <QObject> #include <QObject>
#include <QMainWindow> #include <QMainWindow>
#include <QWidget> #include <QWidget>
#include <QModelIndex>
#include <QItemSelectionModel> #include <QItemSelectionModel>
#include <QListWidgetItem> #include <QListWidgetItem>
#include <QAction> #include <QAction>

View File

@ -54,7 +54,6 @@
#include <QLinkedList> #include <QLinkedList>
#include <QUndoStack> #include <QUndoStack>
#include <QUndoCommand> #include <QUndoCommand>
#include <QModelIndex>
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QPersistentModelIndex> #include <QPersistentModelIndex>
#include <QMutableListIterator> #include <QMutableListIterator>

View File

@ -27,6 +27,10 @@
#include <QtGlobal> #include <QtGlobal>
#include <QObject> #include <QObject>
#include <QAbstractItemModel>
#include <QAbstractListModel>
#include <QSortFilterProxyModel>
#include <QPersistentModelIndex>
#include <QFuture> #include <QFuture>
#include <QList> #include <QList>
#include <QMap> #include <QMap>
@ -37,11 +41,6 @@
#include <QStringList> #include <QStringList>
#include <QUrl> #include <QUrl>
#include <QColor> #include <QColor>
#include <QModelIndex>
#include <QAbstractItemModel>
#include <QAbstractListModel>
#include <QSortFilterProxyModel>
#include <QPersistentModelIndex>
#include <QUndoStack> #include <QUndoStack>
#include "core/song.h" #include "core/song.h"

View File

@ -21,6 +21,8 @@
#include <QApplication> #include <QApplication>
#include <QObject> #include <QObject>
#include <QWidget> #include <QWidget>
#include <QItemSelectionModel>
#include <QSortFilterProxyModel>
#include <QAction> #include <QAction>
#include <QList> #include <QList>
#include <QVariant> #include <QVariant>
@ -33,9 +35,6 @@
#include <QColor> #include <QColor>
#include <QFrame> #include <QFrame>
#include <QPalette> #include <QPalette>
#include <QModelIndex>
#include <QItemSelectionModel>
#include <QSortFilterProxyModel>
#include <QTimer> #include <QTimer>
#include <QTimeLine> #include <QTimeLine>
#include <QFileDialog> #include <QFileDialog>

View File

@ -28,6 +28,10 @@
#include <QObject> #include <QObject>
#include <QWidget> #include <QWidget>
#include <QAbstractItemView>
#include <QStyledItemDelegate>
#include <QStyleOptionViewItem>
#include <QTreeView>
#include <QFuture> #include <QFuture>
#include <QCompleter> #include <QCompleter>
#include <QLocale> #include <QLocale>
@ -42,14 +46,9 @@
#include <QFont> #include <QFont>
#include <QString> #include <QString>
#include <QStringListModel> #include <QStringListModel>
#include <QModelIndex>
#include <QStyleOption> #include <QStyleOption>
#include <QStyledItemDelegate>
#include <QAbstractItemView>
#include <QStyleOptionViewItem>
#include <QHelpEvent> #include <QHelpEvent>
#include <QLineEdit> #include <QLineEdit>
#include <QTreeView>
#include "playlist.h" #include "playlist.h"

View File

@ -26,13 +26,12 @@
#include <stdbool.h> #include <stdbool.h>
#include <QObject> #include <QObject>
#include <QItemSelectionModel>
#include <QFuture>
#include <QList> #include <QList>
#include <QMap> #include <QMap>
#include <QFuture>
#include <QString> #include <QString>
#include <QUrl> #include <QUrl>
#include <QModelIndex>
#include <QItemSelectionModel>
#include "core/song.h" #include "core/song.h"
#include "playlist.h" #include "playlist.h"
@ -103,7 +102,7 @@ public slots:
virtual void SetActivePaused() = 0; virtual void SetActivePaused() = 0;
virtual void SetActiveStopped() = 0; virtual void SetActiveStopped() = 0;
signals: signals:
void PlaylistManagerInitialized(); void PlaylistManagerInitialized();
void PlaylistAdded(int id, const QString &name, bool favorite); void PlaylistAdded(int id, const QString &name, bool favorite);
@ -167,7 +166,7 @@ class PlaylistManager : public PlaylistManagerInterface {
PlaylistParser *parser() const { return parser_; } PlaylistParser *parser() const { return parser_; }
PlaylistContainer *playlist_container() const { return playlist_container_; } PlaylistContainer *playlist_container() const { return playlist_container_; }
public slots: public slots:
void New(const QString &name, const SongList &songs = SongList(), const QString &special_type = QString()); void New(const QString &name, const SongList &songs = SongList(), const QString &special_type = QString());
void Load(const QString &filename); void Load(const QString &filename);
void Save(int id, const QString &filename, Playlist::Path path_type); void Save(int id, const QString &filename, Playlist::Path path_type);
@ -218,7 +217,7 @@ public slots:
private: private:
Playlist *AddPlaylist(int id, const QString& name, const QString &special_type, const QString& ui_path, bool favorite); Playlist *AddPlaylist(int id, const QString& name, const QString &special_type, const QString& ui_path, bool favorite);
private: private:
struct Data { struct Data {
Data(Playlist *_p = nullptr, const QString& _name = QString()) : p(_p), name(_name) {} Data(Playlist *_p = nullptr, const QString& _name = QString()) : p(_p), name(_name) {}
Playlist *p; Playlist *p;