mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Improve Properties widget
Drop redundant dependencies. Refresh after BitTorrent session refreshing (instead of using timer).
This commit is contained in:
@@ -41,7 +41,6 @@ class QTreeView;
|
||||
|
||||
class DownloadedPiecesBar;
|
||||
class LineEdit;
|
||||
class MainWindow;
|
||||
class PeerListWidget;
|
||||
class PieceAvailabilityBar;
|
||||
class PropListDelegate;
|
||||
@@ -50,7 +49,6 @@ class SpeedWidget;
|
||||
class torrent_file;
|
||||
class TorrentContentFilterModel;
|
||||
class TrackerListWidget;
|
||||
class TransferListWidget;
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
@@ -69,8 +67,9 @@ public:
|
||||
VISIBLE
|
||||
};
|
||||
|
||||
PropertiesWidget(QWidget *parent, MainWindow *mainWindow, TransferListWidget *transferList);
|
||||
~PropertiesWidget();
|
||||
explicit PropertiesWidget(QWidget *parent);
|
||||
~PropertiesWidget() override;
|
||||
|
||||
BitTorrent::TorrentHandle *getCurrentTorrent() const;
|
||||
TrackerListWidget *getTrackerList() const;
|
||||
PeerListWidget *getPeerList() const;
|
||||
@@ -78,6 +77,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void setVisibility(bool visible);
|
||||
void loadTorrentInfos(BitTorrent::TorrentHandle *const torrent);
|
||||
void loadDynamicData();
|
||||
void clear();
|
||||
void readSettings();
|
||||
@@ -86,12 +86,7 @@ public slots:
|
||||
void openDoubleClickedFile(const QModelIndex &);
|
||||
void loadTrackers(BitTorrent::TorrentHandle *const torrent);
|
||||
|
||||
protected:
|
||||
QPushButton *getButtonFromIndex(int index);
|
||||
void applyPriorities();
|
||||
|
||||
protected slots:
|
||||
void loadTorrentInfos(BitTorrent::TorrentHandle *const torrent);
|
||||
void updateTorrentInfos(BitTorrent::TorrentHandle *const torrent);
|
||||
void loadUrlSeeds();
|
||||
void askWebSeed();
|
||||
@@ -112,14 +107,13 @@ private slots:
|
||||
void updateSavePath(BitTorrent::TorrentHandle *const torrent);
|
||||
|
||||
private:
|
||||
QPushButton *getButtonFromIndex(int index);
|
||||
void applyPriorities();
|
||||
void openFile(const QModelIndex &index);
|
||||
void openFolder(const QModelIndex &index, bool containingFolder);
|
||||
|
||||
Ui::PropertiesWidget *m_ui;
|
||||
TransferListWidget *m_transferList;
|
||||
MainWindow *m_mainWindow;
|
||||
BitTorrent::TorrentHandle *m_torrent;
|
||||
QTimer *m_refreshTimer;
|
||||
SlideState m_state;
|
||||
TorrentContentFilterModel *m_propListModel;
|
||||
PropListDelegate *m_propListDelegate;
|
||||
|
||||
Reference in New Issue
Block a user