Browse Source

Remove some unused #include

adaptive-webui-19844
thalieht 6 years ago
parent
commit
9995967fbf
  1. 1
      src/base/bittorrent/private/resumedatasavingmanager.cpp
  2. 1
      src/base/bittorrent/torrentcreatorthread.cpp
  3. 1
      src/base/bittorrent/trackerentry.h
  4. 2
      src/base/filesystemwatcher.cpp
  5. 1
      src/base/net/downloadmanager.h
  6. 1
      src/base/net/geoipmanager.cpp
  7. 1
      src/base/net/geoipmanager.h
  8. 1
      src/base/net/private/geoipdatabase.cpp
  9. 1
      src/base/net/smtp.h
  10. 1
      src/base/preferences.cpp
  11. 1
      src/base/rss/rss_autodownloader.cpp
  12. 1
      src/base/rss/rss_autodownloadrule.cpp
  13. 2
      src/base/rss/rss_session.cpp
  14. 1
      src/base/search/searchpluginmanager.cpp
  15. 1
      src/base/utils/fs.cpp
  16. 1
      src/base/utils/password.cpp
  17. 1
      src/gui/addnewtorrentdialog.cpp
  18. 1
      src/gui/advancedsettings.cpp
  19. 3
      src/gui/autoexpandabledialog.cpp
  20. 1
      src/gui/categoryfilterwidget.cpp
  21. 1
      src/gui/executionlogwidget.cpp
  22. 1
      src/gui/fspathedit.h
  23. 2
      src/gui/guiiconprovider.cpp
  24. 6
      src/gui/mainwindow.cpp
  25. 2
      src/gui/optionsdialog.cpp
  26. 1
      src/gui/programupdater.cpp
  27. 1
      src/gui/programupdater.h
  28. 2
      src/gui/properties/peerlistwidget.cpp
  29. 1
      src/gui/properties/proplistdelegate.cpp
  30. 1
      src/gui/properties/trackerlistwidget.cpp
  31. 2
      src/gui/properties/trackersadditiondialog.cpp
  32. 1
      src/gui/rss/automatedrssdownloader.cpp
  33. 2
      src/gui/rss/rsswidget.cpp
  34. 1
      src/gui/rss/rsswidget.h
  35. 2
      src/gui/search/searchlistdelegate.cpp
  36. 12
      src/gui/search/searchwidget.cpp
  37. 1
      src/gui/statusbar.cpp
  38. 2
      src/gui/tagfilterwidget.cpp
  39. 1
      src/gui/torrentcontentmodel.cpp
  40. 4
      src/gui/torrentcontentmodelitem.cpp
  41. 1
      src/gui/torrentcreatordialog.cpp
  42. 4
      src/gui/transferlistfilterswidget.cpp
  43. 1
      src/gui/transferlistmodel.cpp
  44. 2
      src/webui/api/serialize/serialize_torrent.cpp
  45. 1
      src/webui/api/synccontroller.cpp

1
src/base/bittorrent/private/resumedatasavingmanager.cpp

@ -29,7 +29,6 @@
#include "resumedatasavingmanager.h" #include "resumedatasavingmanager.h"
#include <QByteArray> #include <QByteArray>
#include <QDebug>
#include <QSaveFile> #include <QSaveFile>
#include "base/logger.h" #include "base/logger.h"

1
src/base/bittorrent/torrentcreatorthread.cpp

@ -43,7 +43,6 @@
#include "base/global.h" #include "base/global.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "base/utils/string.h" #include "base/utils/string.h"
namespace namespace

1
src/base/bittorrent/trackerentry.h

@ -30,7 +30,6 @@
#define BITTORRENT_TRACKERENTRY_H #define BITTORRENT_TRACKERENTRY_H
#include <libtorrent/announce_entry.hpp> #include <libtorrent/announce_entry.hpp>
#include <libtorrent/torrent_info.hpp>
class QString; class QString;

2
src/base/filesystemwatcher.cpp

@ -37,11 +37,9 @@
#endif #endif
#include "base/algorithm.h" #include "base/algorithm.h"
#include "base/bittorrent/magneturi.h"
#include "base/bittorrent/torrentinfo.h" #include "base/bittorrent/torrentinfo.h"
#include "base/global.h" #include "base/global.h"
#include "base/logger.h" #include "base/logger.h"
#include "base/preferences.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
namespace namespace

1
src/base/net/downloadmanager.h

@ -32,7 +32,6 @@
#include <QHash> #include <QHash>
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QObject> #include <QObject>
#include <QQueue> #include <QQueue>
#include <QSet> #include <QSet>

1
src/base/net/geoipmanager.cpp

@ -30,7 +30,6 @@
#include "geoipmanager.h" #include "geoipmanager.h"
#include <QDateTime> #include <QDateTime>
#include <QDebug>
#include <QDir> #include <QDir>
#include <QFile> #include <QFile>
#include <QHostAddress> #include <QHostAddress>

1
src/base/net/geoipmanager.h

@ -30,7 +30,6 @@
#ifndef NET_GEOIPMANAGER_H #ifndef NET_GEOIPMANAGER_H
#define NET_GEOIPMANAGER_H #define NET_GEOIPMANAGER_H
#include <QCache>
#include <QObject> #include <QObject>
class QHostAddress; class QHostAddress;

1
src/base/net/private/geoipdatabase.cpp

@ -32,7 +32,6 @@
#include <QHostAddress> #include <QHostAddress>
#include <QVariant> #include <QVariant>
#include "base/types.h"
#include "geoipdatabase.h" #include "geoipdatabase.h"
namespace namespace

1
src/base/net/smtp.h

@ -36,7 +36,6 @@
#include <QAbstractSocket> #include <QAbstractSocket>
#include <QByteArray> #include <QByteArray>
#include <QHash> #include <QHash>
#include <QMetaType>
#include <QObject> #include <QObject>
#include <QString> #include <QString>

1
src/base/preferences.cpp

@ -59,7 +59,6 @@
#include "global.h" #include "global.h"
#include "settingsstorage.h" #include "settingsstorage.h"
#include "utils/fs.h" #include "utils/fs.h"
#include "utils/misc.h"
Preferences *Preferences::m_instance = nullptr; Preferences *Preferences::m_instance = nullptr;

1
src/base/rss/rss_autodownloader.cpp

@ -30,7 +30,6 @@
#include <QDataStream> #include <QDataStream>
#include <QDebug> #include <QDebug>
#include <QJsonArray>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QJsonValue> #include <QJsonValue>

1
src/base/rss/rss_autodownloadrule.cpp

@ -32,7 +32,6 @@
#include <algorithm> #include <algorithm>
#include <QDebug> #include <QDebug>
#include <QDir>
#include <QHash> #include <QHash>
#include <QJsonArray> #include <QJsonArray>
#include <QJsonObject> #include <QJsonObject>

2
src/base/rss/rss_session.cpp

@ -31,14 +31,12 @@
#include "rss_session.h" #include "rss_session.h"
#include <QDebug> #include <QDebug>
#include <QDir>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QJsonValue> #include <QJsonValue>
#include <QSaveFile> #include <QSaveFile>
#include <QString> #include <QString>
#include <QThread> #include <QThread>
#include <QVariantHash>
#include "../asyncfilestorage.h" #include "../asyncfilestorage.h"
#include "../global.h" #include "../global.h"

1
src/base/search/searchpluginmanager.cpp

@ -31,7 +31,6 @@
#include <memory> #include <memory>
#include <QDebug>
#include <QDir> #include <QDir>
#include <QDirIterator> #include <QDirIterator>
#include <QDomDocument> #include <QDomDocument>

1
src/base/utils/fs.cpp

@ -49,7 +49,6 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <QCoreApplication>
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
#include <QDirIterator> #include <QDirIterator>

1
src/base/utils/password.cpp

@ -37,7 +37,6 @@
#include "bytearray.h" #include "bytearray.h"
#include "random.h" #include "random.h"
#include "string.h"
namespace Utils namespace Utils
{ {

1
src/gui/addnewtorrentdialog.cpp

@ -43,7 +43,6 @@
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/global.h" #include "base/global.h"
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/preferences.h"
#include "base/settingsstorage.h" #include "base/settingsstorage.h"
#include "base/torrentfileguard.h" #include "base/torrentfileguard.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"

1
src/gui/advancedsettings.cpp

@ -30,7 +30,6 @@
#include <limits> #include <limits>
#include <QFont>
#include <QHeaderView> #include <QHeaderView>
#include <QHostAddress> #include <QHostAddress>
#include <QNetworkInterface> #include <QNetworkInterface>

3
src/gui/autoexpandabledialog.cpp

@ -28,9 +28,6 @@
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include <QDesktopWidget>
#include "mainwindow.h"
#include "ui_autoexpandabledialog.h" #include "ui_autoexpandabledialog.h"
#include "utils.h" #include "utils.h"

1
src/gui/categoryfilterwidget.cpp

@ -29,7 +29,6 @@
#include "categoryfilterwidget.h" #include "categoryfilterwidget.h"
#include <QAction> #include <QAction>
#include <QHeaderView>
#include <QMenu> #include <QMenu>
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"

1
src/gui/executionlogwidget.cpp

@ -28,7 +28,6 @@
#include "executionlogwidget.h" #include "executionlogwidget.h"
#include <QColor>
#include <QDateTime> #include <QDateTime>
#include <QPalette> #include <QPalette>

1
src/gui/fspathedit.h

@ -29,7 +29,6 @@
#ifndef QBT_FSPATHEDIT_H #ifndef QBT_FSPATHEDIT_H
#define QBT_FSPATHEDIT_H #define QBT_FSPATHEDIT_H
#include <QScopedPointer>
#include <QWidget> #include <QWidget>
namespace Private namespace Private

2
src/gui/guiiconprovider.cpp

@ -31,9 +31,7 @@
#include <QHash> #include <QHash>
#include <QIcon> #include <QIcon>
#include <QVector>
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC)) #if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC))
#include <QDir>
#include <QFile> #include <QFile>
#endif #endif

6
src/gui/mainwindow.cpp

@ -28,7 +28,6 @@
#include "mainwindow.h" #include "mainwindow.h"
#include <QClipboard>
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug> #include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
@ -38,7 +37,6 @@
#include <QMimeData> #include <QMimeData>
#include <QProcess> #include <QProcess>
#include <QPushButton> #include <QPushButton>
#include <QScrollBar>
#include <QShortcut> #include <QShortcut>
#include <QSplitter> #include <QSplitter>
#include <QStatusBar> #include <QStatusBar>
@ -71,7 +69,6 @@
#include "base/utils/password.h" #include "base/utils/password.h"
#include "aboutdialog.h" #include "aboutdialog.h"
#include "addnewtorrentdialog.h" #include "addnewtorrentdialog.h"
#include "application.h"
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include "cookiesdialog.h" #include "cookiesdialog.h"
#include "downloadfromurldialog.h" #include "downloadfromurldialog.h"
@ -96,9 +93,6 @@
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "utils.h" #include "utils.h"
#ifdef Q_OS_WIN
#include "base/net/downloadmanager.h"
#endif
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
#include "macutilities.h" #include "macutilities.h"
#endif #endif

2
src/gui/optionsdialog.cpp

@ -35,7 +35,6 @@
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug> #include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDesktopWidget>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QEvent> #include <QEvent>
#include <QFileDialog> #include <QFileDialog>
@ -45,7 +44,6 @@
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/global.h" #include "base/global.h"
#include "base/http/server.h"
#include "base/net/dnsupdater.h" #include "base/net/dnsupdater.h"
#include "base/net/portforwarder.h" #include "base/net/portforwarder.h"
#include "base/net/proxyconfigurationmanager.h" #include "base/net/proxyconfigurationmanager.h"

1
src/gui/programupdater.cpp

@ -36,7 +36,6 @@
#include <QXmlStreamReader> #include <QXmlStreamReader>
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/utils/fs.h"
namespace namespace
{ {

1
src/gui/programupdater.h

@ -30,7 +30,6 @@
#define PROGRAMUPDATER_H #define PROGRAMUPDATER_H
#include <QObject> #include <QObject>
#include <QUrl>
namespace Net namespace Net
{ {

2
src/gui/properties/peerlistwidget.cpp

@ -46,13 +46,11 @@
#include "base/net/geoipmanager.h" #include "base/net/geoipmanager.h"
#include "base/net/reverseresolution.h" #include "base/net/reverseresolution.h"
#include "base/preferences.h" #include "base/preferences.h"
#include "base/unicodestrings.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "peerlistdelegate.h" #include "peerlistdelegate.h"
#include "peerlistsortmodel.h" #include "peerlistsortmodel.h"
#include "peersadditiondialog.h" #include "peersadditiondialog.h"
#include "propertieswidget.h" #include "propertieswidget.h"
#include "speedlimitdialog.h"
PeerListWidget::PeerListWidget(PropertiesWidget *parent) PeerListWidget::PeerListWidget(PropertiesWidget *parent)
: QTreeView(parent) : QTreeView(parent)

1
src/gui/properties/proplistdelegate.cpp

@ -45,7 +45,6 @@
#include "base/utils/misc.h" #include "base/utils/misc.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "propertieswidget.h" #include "propertieswidget.h"
#include "torrentcontentmodelitem.h"
namespace namespace
{ {

1
src/gui/properties/trackerlistwidget.cpp

@ -49,7 +49,6 @@
#include "base/bittorrent/trackerentry.h" #include "base/bittorrent/trackerentry.h"
#include "base/global.h" #include "base/global.h"
#include "base/preferences.h" #include "base/preferences.h"
#include "base/utils/misc.h"
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "propertieswidget.h" #include "propertieswidget.h"

2
src/gui/properties/trackersadditiondialog.cpp

@ -36,8 +36,6 @@
#include "base/bittorrent/trackerentry.h" #include "base/bittorrent/trackerentry.h"
#include "base/global.h" #include "base/global.h"
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "ui_trackersadditiondialog.h" #include "ui_trackersadditiondialog.h"

1
src/gui/rss/automatedrssdownloader.cpp

@ -30,7 +30,6 @@
#include "automatedrssdownloader.h" #include "automatedrssdownloader.h"
#include <QCursor> #include <QCursor>
#include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>

2
src/gui/rss/rsswidget.cpp

@ -31,14 +31,12 @@
#include "rsswidget.h" #include "rsswidget.h"
#include <QClipboard> #include <QClipboard>
#include <QDebug>
#include <QDesktopServices> #include <QDesktopServices>
#include <QDragMoveEvent> #include <QDragMoveEvent>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>
#include <QRegularExpression> #include <QRegularExpression>
#include <QShortcut> #include <QShortcut>
#include <QStandardItemModel>
#include <QString> #include <QString>
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"

1
src/gui/rss/rsswidget.h

@ -31,7 +31,6 @@
#ifndef RSSWIDGET_H #ifndef RSSWIDGET_H
#define RSSWIDGET_H #define RSSWIDGET_H
#include <QPointer>
#include <QWidget> #include <QWidget>
class QShortcut; class QShortcut;

2
src/gui/search/searchlistdelegate.cpp

@ -28,10 +28,8 @@
#include "searchlistdelegate.h" #include "searchlistdelegate.h"
#include <QCoreApplication>
#include <QModelIndex> #include <QModelIndex>
#include <QPainter> #include <QPainter>
#include <QProgressBar>
#include <QStyleOptionViewItem> #include <QStyleOptionViewItem>
#include "base/utils/misc.h" #include "base/utils/misc.h"

12
src/gui/search/searchwidget.cpp

@ -36,30 +36,18 @@
#endif #endif
#include <QDebug> #include <QDebug>
#include <QHeaderView>
#include <QMessageBox> #include <QMessageBox>
#include <QMimeData>
#include <QProcess>
#include <QRegularExpression> #include <QRegularExpression>
#include <QShortcut> #include <QShortcut>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QTextStream> #include <QTextStream>
#include <QTreeView>
#include "base/bittorrent/session.h"
#include "base/global.h" #include "base/global.h"
#include "base/preferences.h"
#include "base/search/searchpluginmanager.h" #include "base/search/searchpluginmanager.h"
#include "base/search/searchhandler.h" #include "base/search/searchhandler.h"
#include "base/utils/foreignapps.h" #include "base/utils/foreignapps.h"
#include "base/utils/fs.h"
#include "addnewtorrentdialog.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "pluginselectdialog.h" #include "pluginselectdialog.h"
#include "searchlistdelegate.h"
#include "searchsortmodel.h"
#include "searchjobwidget.h" #include "searchjobwidget.h"
#include "ui_searchwidget.h" #include "ui_searchwidget.h"

1
src/gui/statusbar.cpp

@ -39,7 +39,6 @@
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/bittorrent/sessionstatus.h" #include "base/bittorrent/sessionstatus.h"
#include "base/utils/misc.h" #include "base/utils/misc.h"
#include "guiiconprovider.h"
#include "speedlimitdialog.h" #include "speedlimitdialog.h"
#include "utils.h" #include "utils.h"

2
src/gui/tagfilterwidget.cpp

@ -29,8 +29,6 @@
#include "tagfilterwidget.h" #include "tagfilterwidget.h"
#include <QAction> #include <QAction>
#include <QDebug>
#include <QHeaderView>
#include <QMenu> #include <QMenu>
#include <QMessageBox> #include <QMessageBox>

1
src/gui/torrentcontentmodel.cpp

@ -52,7 +52,6 @@
#include "base/bittorrent/torrentinfo.h" #include "base/bittorrent/torrentinfo.h"
#include "base/global.h" #include "base/global.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "torrentcontentmodelfile.h" #include "torrentcontentmodelfile.h"
#include "torrentcontentmodelfolder.h" #include "torrentcontentmodelfolder.h"

4
src/gui/torrentcontentmodelitem.cpp

@ -28,10 +28,6 @@
#include "torrentcontentmodelitem.h" #include "torrentcontentmodelitem.h"
#include <QDebug>
#include "base/utils/misc.h"
#include "base/utils/fs.h"
#include "torrentcontentmodelfolder.h" #include "torrentcontentmodelfolder.h"
TorrentContentModelItem::TorrentContentModelItem(TorrentContentModelFolder *parent) TorrentContentModelItem::TorrentContentModelItem(TorrentContentModelFolder *parent)

1
src/gui/torrentcreatordialog.cpp

@ -30,7 +30,6 @@
#include "torrentcreatordialog.h" #include "torrentcreatordialog.h"
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug>
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include <QMimeData> #include <QMimeData>

4
src/gui/transferlistfilterswidget.cpp

@ -29,7 +29,6 @@
#include "transferlistfilterswidget.h" #include "transferlistfilterswidget.h"
#include <QCheckBox> #include <QCheckBox>
#include <QDebug>
#include <QIcon> #include <QIcon>
#include <QListWidgetItem> #include <QListWidgetItem>
#include <QMenu> #include <QMenu>
@ -49,12 +48,9 @@
#include "base/torrentfilter.h" #include "base/torrentfilter.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "autoexpandabledialog.h"
#include "categoryfilterwidget.h" #include "categoryfilterwidget.h"
#include "guiiconprovider.h" #include "guiiconprovider.h"
#include "tagfilterwidget.h" #include "tagfilterwidget.h"
#include "transferlistdelegate.h"
#include "transferlistmodel.h"
#include "transferlistwidget.h" #include "transferlistwidget.h"
#include "utils.h" #include "utils.h"

1
src/gui/transferlistmodel.cpp

@ -38,7 +38,6 @@
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/global.h" #include "base/global.h"
#include "base/torrentfilter.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
static QIcon getIconByState(BitTorrent::TorrentState state); static QIcon getIconByState(BitTorrent::TorrentState state);

2
src/webui/api/serialize/serialize_torrent.cpp

@ -30,10 +30,8 @@
#include <QDateTime> #include <QDateTime>
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h" #include "base/bittorrent/torrenthandle.h"
#include "base/utils/fs.h" #include "base/utils/fs.h"
#include "base/utils/string.h"
namespace namespace
{ {

1
src/webui/api/synccontroller.cpp

@ -40,7 +40,6 @@
#include "base/global.h" #include "base/global.h"
#include "base/net/geoipmanager.h" #include "base/net/geoipmanager.h"
#include "base/preferences.h" #include "base/preferences.h"
#include "base/utils/fs.h"
#include "base/utils/string.h" #include "base/utils/string.h"
#include "apierror.h" #include "apierror.h"
#include "freediskspacechecker.h" #include "freediskspacechecker.h"

Loading…
Cancel
Save