Skip to content

Commit

Permalink
Make complete type declarations available where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
glassez committed Oct 2, 2021
1 parent 86b1ac5 commit add75fb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

#include "base/bittorrent/session.h"
#include "base/bittorrent/sessionstatus.h"
#include "base/bittorrent/torrent.h"
#include "base/global.h"
#include "base/logger.h"
#include "base/net/downloadmanager.h"
Expand Down
7 changes: 2 additions & 5 deletions src/gui/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <QSystemTrayIcon>
#endif

#include "base/bittorrent/torrent.h"

class QCloseEvent;
class QFileSystemWatcher;
class QSplitter;
Expand All @@ -57,11 +59,6 @@ class TorrentCreatorDialog;
class TransferListFiltersWidget;
class TransferListWidget;

namespace BitTorrent
{
class Torrent;
}

namespace Net
{
struct DownloadResult;
Expand Down
2 changes: 0 additions & 2 deletions src/gui/transferlistfilterswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@
#include <QUrl>
#include <QVBoxLayout>

#include "base/bittorrent/infohash.h"
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrent.h"
#include "base/bittorrent/trackerentry.h"
#include "base/global.h"
#include "base/logger.h"
#include "base/net/downloadmanager.h"
Expand Down
5 changes: 3 additions & 2 deletions src/gui/transferlistfilterswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include <QListWidget>
#include <QtContainerFwd>

#include "base/bittorrent/infohash.h"
#include "base/bittorrent/trackerentry.h"

class QCheckBox;
class QResizeEvent;

Expand All @@ -40,8 +43,6 @@ class TransferListWidget;
namespace BitTorrent
{
class Torrent;
class TorrentID;
struct TrackerEntry;
}

namespace Net
Expand Down
1 change: 0 additions & 1 deletion src/gui/transferlistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <QWheelEvent>

#include "base/bittorrent/common.h"
#include "base/bittorrent/infohash.h"
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrent.h"
#include "base/bittorrent/trackerentry.h"
Expand Down
4 changes: 3 additions & 1 deletion src/gui/transferlistwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@
#pragma once

#include <functional>

#include <QtContainerFwd>
#include <QTreeView>

#include "base/bittorrent/infohash.h"

class MainWindow;
class TransferListModel;
class TransferListSortModel;

namespace BitTorrent
{
class Torrent;
class TorrentID;
}

enum class CopyInfohashPolicy
Expand Down

0 comments on commit add75fb

Please sign in to comment.