Changeset 8325
- Timestamp:
- May 3, 2009, 6:35:33 PM (14 years ago)
- Location:
- trunk/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/mainwin.cc
r8323 r8325 189 189 // torrent view 190 190 myFilterModel.setSourceModel( &myModel ); 191 connect( &myModel, SIGNAL(modelReset()), this, SLOT(onModelReset())); 192 connect( &myModel, SIGNAL(rowsRemoved(const QModelIndex&,int,int)), this, SLOT(onModelReset())); 193 connect( &myModel, SIGNAL(rowsInserted(const QModelIndex&,int,int)), this, SLOT(onModelReset())); 191 194 ui.listView->setModel( &myFilterModel ); 192 195 connect( ui.listView->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&,const QItemSelection&)), this, SLOT(refreshActionSensitivity())); … … 279 282 { 280 283 myModel.clear( ); 284 } 285 286 void 287 TrMainWindow :: onModelReset( ) 288 { 281 289 refreshTitle( ); 282 290 refreshVisibleCount( ); -
trunk/qt/mainwin.h
r8323 r8325 122 122 void onSetPrefs( bool ); 123 123 void onSessionSourceChanged( ); 124 void onModelReset( ); 124 125 125 126 private slots: -
trunk/qt/torrent-model.cc
r8323 r8325 205 205 { 206 206 Torrent * tor = myIdToTorrent.value( id, 0 ); 207 std::cerr << "removing torrent " << id << std::endl;208 207 209 208 beginRemoveRows( QModelIndex(), row, row );
Note: See TracChangeset
for help on using the changeset viewer.