Browse Source

Forward declare classes where possible in 'TransferListWidget'.

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
f9aee5e3ab
  1. 2
      src/transferlistwidget.cpp
  2. 8
      src/transferlistwidget.h

2
src/transferlistwidget.cpp

@ -28,6 +28,7 @@
* Contact : chris@qbittorrent.org * Contact : chris@qbittorrent.org
*/ */
#include <QShortcut>
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QDesktopServices> #include <QDesktopServices>
@ -61,6 +62,7 @@
#include "fs_utils.h" #include "fs_utils.h"
#include "autoexpandabledialog.h" #include "autoexpandabledialog.h"
#include "statussortfilterproxymodel.h" #include "statussortfilterproxymodel.h"
#include "transferlistsortmodel.h"
using namespace libtorrent; using namespace libtorrent;

8
src/transferlistwidget.h

@ -31,19 +31,19 @@
#ifndef TRANSFERLISTWIDGET_H #ifndef TRANSFERLISTWIDGET_H
#define TRANSFERLISTWIDGET_H #define TRANSFERLISTWIDGET_H
#include <QShortcut>
#include <QTreeView> #include <QTreeView>
#include <libtorrent/version.hpp> #include <libtorrent/version.hpp>
#include "qtorrenthandle.h"
#include "transferlistsortmodel.h"
class QBtSession; class QBtSession;
class TransferListDelegate; class QTorrentHandle;
class MainWindow; class MainWindow;
class TransferListDelegate;
class TransferListSortModel;
class TorrentModel; class TorrentModel;
class StatusSortFilterProxyModel; class StatusSortFilterProxyModel;
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QShortcut;
class QSortFilterProxyModel; class QSortFilterProxyModel;
class QStandardItemModel; class QStandardItemModel;
QT_END_NAMESPACE QT_END_NAMESPACE

Loading…
Cancel
Save