Remove redundant includes
This commit is contained in:
parent
046c822604
commit
b066158a4b
|
@ -34,7 +34,6 @@
|
|||
#include <QSystemTrayIcon>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QModelIndex>
|
||||
#include <QPersistentModelIndex>
|
||||
#include <QMenu>
|
||||
#include <QAction>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QMimeData>
|
||||
#include <QModelIndex>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QAbstractProxyModel>
|
||||
#include <QPersistentModelIndex>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QModelIndex>
|
||||
#include <QMetaType>
|
||||
#include <QDateTime>
|
||||
#include <QVariant>
|
||||
|
|
|
@ -26,11 +26,10 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QModelIndex>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QList>
|
||||
#include <QVariant>
|
||||
#include <QPair>
|
||||
#include <QVariant>
|
||||
|
||||
class MultiSortFilterProxy : public QSortFilterProxyModel {
|
||||
public:
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QModelIndex>
|
||||
|
||||
template <typename T>
|
||||
class SimpleTreeModel : public QAbstractItemModel {
|
||||
|
|
|
@ -22,9 +22,6 @@
|
|||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
#include <QModelIndex>
|
||||
#include <QStandardItem>
|
||||
#include <QStandardItemModel>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QMap>
|
||||
#include <QSet>
|
||||
|
@ -39,8 +36,8 @@
|
|||
StandardItemIconLoader::StandardItemIconLoader(AlbumCoverLoader *cover_loader, QObject *parent)
|
||||
: QObject(parent),
|
||||
cover_loader_(cover_loader),
|
||||
model_(nullptr)
|
||||
{
|
||||
model_(nullptr) {
|
||||
|
||||
cover_options_.desired_height_ = 16;
|
||||
|
||||
connect(cover_loader_, SIGNAL(ImageLoaded(quint64, QImage)), SLOT(ImageLoaded(quint64, QImage)));
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <QObject>
|
||||
#include <QMainWindow>
|
||||
#include <QWidget>
|
||||
#include <QModelIndex>
|
||||
#include <QItemSelectionModel>
|
||||
#include <QListWidgetItem>
|
||||
#include <QAction>
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#include <QLinkedList>
|
||||
#include <QUndoStack>
|
||||
#include <QUndoCommand>
|
||||
#include <QModelIndex>
|
||||
#include <QAbstractListModel>
|
||||
#include <QPersistentModelIndex>
|
||||
#include <QMutableListIterator>
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QAbstractListModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QPersistentModelIndex>
|
||||
#include <QFuture>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
|
@ -37,11 +41,6 @@
|
|||
#include <QStringList>
|
||||
#include <QUrl>
|
||||
#include <QColor>
|
||||
#include <QModelIndex>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QAbstractListModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QPersistentModelIndex>
|
||||
#include <QUndoStack>
|
||||
|
||||
#include "core/song.h"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include <QApplication>
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
#include <QItemSelectionModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QAction>
|
||||
#include <QList>
|
||||
#include <QVariant>
|
||||
|
@ -33,9 +35,6 @@
|
|||
#include <QColor>
|
||||
#include <QFrame>
|
||||
#include <QPalette>
|
||||
#include <QModelIndex>
|
||||
#include <QItemSelectionModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QTimer>
|
||||
#include <QTimeLine>
|
||||
#include <QFileDialog>
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
#include <QAbstractItemView>
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QStyleOptionViewItem>
|
||||
#include <QTreeView>
|
||||
#include <QFuture>
|
||||
#include <QCompleter>
|
||||
#include <QLocale>
|
||||
|
@ -42,14 +46,9 @@
|
|||
#include <QFont>
|
||||
#include <QString>
|
||||
#include <QStringListModel>
|
||||
#include <QModelIndex>
|
||||
#include <QStyleOption>
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QAbstractItemView>
|
||||
#include <QStyleOptionViewItem>
|
||||
#include <QHelpEvent>
|
||||
#include <QLineEdit>
|
||||
#include <QTreeView>
|
||||
|
||||
#include "playlist.h"
|
||||
|
||||
|
|
|
@ -26,13 +26,12 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QItemSelectionModel>
|
||||
#include <QFuture>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <QFuture>
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
#include <QModelIndex>
|
||||
#include <QItemSelectionModel>
|
||||
|
||||
#include "core/song.h"
|
||||
#include "playlist.h"
|
||||
|
@ -103,7 +102,7 @@ public slots:
|
|||
virtual void SetActivePaused() = 0;
|
||||
virtual void SetActiveStopped() = 0;
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void PlaylistManagerInitialized();
|
||||
|
||||
void PlaylistAdded(int id, const QString &name, bool favorite);
|
||||
|
@ -167,7 +166,7 @@ class PlaylistManager : public PlaylistManagerInterface {
|
|||
PlaylistParser *parser() const { return parser_; }
|
||||
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 Load(const QString &filename);
|
||||
void Save(int id, const QString &filename, Playlist::Path path_type);
|
||||
|
@ -218,7 +217,7 @@ public slots:
|
|||
private:
|
||||
Playlist *AddPlaylist(int id, const QString& name, const QString &special_type, const QString& ui_path, bool favorite);
|
||||
|
||||
private:
|
||||
private:
|
||||
struct Data {
|
||||
Data(Playlist *_p = nullptr, const QString& _name = QString()) : p(_p), name(_name) {}
|
||||
Playlist *p;
|
||||
|
|
Loading…
Reference in New Issue