- Refresh torrent properties and transfer list only when they are visible in order to save CPU :)

This commit is contained in:
Christophe Dumez 2009-11-21 14:16:54 +00:00
commit 70c62f6294
6 changed files with 40 additions and 14 deletions

View file

@ -39,6 +39,7 @@ class QSortFilterProxyModel;
class Bittorrent;
class QTimer;
class TransferListDelegate;
class GUI;
enum TorrentFilter {FILTER_ALL, FILTER_DOWNLOADING, FILTER_COMPLETED, FILTER_ACTIVE, FILTER_INACTIVE};
@ -51,9 +52,10 @@ private:
QSortFilterProxyModel *proxyModel;
Bittorrent* BTSession;
QTimer *refreshTimer;
GUI *main_window;
public:
TransferListWidget(QWidget *parent, Bittorrent* BTSession);
TransferListWidget(QWidget *parent, GUI *main_window, Bittorrent* BTSession);
~TransferListWidget();
protected: