mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
- Improved list refreshing code
This commit is contained in:
parent
d6e90883cb
commit
bf7841cdb9
2 changed files with 7 additions and 13 deletions
|
@ -38,7 +38,7 @@ class TransferListDelegate;
|
|||
class QStandardItemModel;
|
||||
class QSortFilterProxyModel;
|
||||
class bittorrent;
|
||||
class QBasicTimer;
|
||||
class QTimer;
|
||||
|
||||
class TransferListWidget: public QTreeView {
|
||||
Q_OBJECT
|
||||
|
@ -48,14 +48,13 @@ private:
|
|||
QStandardItemModel *listModel;
|
||||
QSortFilterProxyModel *proxyModel;
|
||||
bittorrent* BTSession;
|
||||
QBasicTimer *refreshTimer;
|
||||
QTimer *refreshTimer;
|
||||
|
||||
public:
|
||||
TransferListWidget(QWidget *parent, bittorrent* BTSession);
|
||||
~TransferListWidget();
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent*);
|
||||
int getRowFromHash(QString hash) const;
|
||||
QString getHashFromRow(int row) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue