Changeset 14560
- Timestamp:
- Aug 17, 2015, 8:14:45 AM (8 years ago)
- Location:
- trunk/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/FilterBar.cc
r14539 r14560 252 252 connect (&myFilter, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT (refreshCountLabel ())); 253 253 connect (&myFilter, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT (refreshCountLabel ())); 254 connect (&myTorrents, SIGNAL (modelReset ()), this, SLOT ( onTorrentModelReset()));255 connect (&myTorrents, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT ( onTorrentModelRowsInserted (QModelIndex, int, int)));256 connect (&myTorrents, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT ( onTorrentModelRowsRemoved (QModelIndex, int, int)));257 connect (&myTorrents, SIGNAL (dataChanged (QModelIndex, QModelIndex)), this, SLOT ( onTorrentModelDataChanged (QModelIndex, QModelIndex)));254 connect (&myTorrents, SIGNAL (modelReset ()), this, SLOT (recountSoon ())); 255 connect (&myTorrents, SIGNAL (rowsInserted (QModelIndex, int, int)), this, SLOT (recountSoon ())); 256 connect (&myTorrents, SIGNAL (rowsRemoved (QModelIndex, int, int)), this, SLOT (recountSoon ())); 257 connect (&myTorrents, SIGNAL (dataChanged (QModelIndex, QModelIndex)), this, SLOT (recountSoon ())); 258 258 connect (myRecountTimer, SIGNAL (timeout ()), this, SLOT (recount ())); 259 259 … … 357 357 ***/ 358 358 359 void FilterBar::onTorrentModelReset () { recountSoon (); }360 void FilterBar::onTorrentModelRowsInserted (const QModelIndex&, int, int) { recountSoon (); }361 void FilterBar::onTorrentModelRowsRemoved (const QModelIndex&, int, int) { recountSoon (); }362 void FilterBar::onTorrentModelDataChanged (const QModelIndex&, const QModelIndex&) { recountSoon (); }363 364 359 void 365 360 FilterBar::recountSoon () -
trunk/qt/FilterBar.h
r14539 r14560 34 34 FilterBarComboBox * createTrackerCombo (QStandardItemModel *); 35 35 FilterBarComboBox * createActivityCombo (); 36 void recountSoon ();37 36 void refreshTrackers (); 38 37 QString getCountString (int n) const; 39 38 40 39 private slots: 40 void recountSoon (); 41 41 void recount (); 42 42 void refreshPref (int key); … … 44 44 void onActivityIndexChanged (int index); 45 45 void onTrackerIndexChanged (int index); 46 void onTorrentModelReset ();47 void onTorrentModelRowsInserted (const QModelIndex&, int, int);48 void onTorrentModelRowsRemoved (const QModelIndex&, int, int);49 void onTorrentModelDataChanged (const QModelIndex&, const QModelIndex&);50 46 void onTextChanged (const QString&); 51 47
Note: See TracChangeset
for help on using the changeset viewer.