Changeset 14379
- Timestamp:
- Dec 12, 2014, 11:52:17 PM (8 years ago)
- Location:
- trunk/qt
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/app.cc
r14377 r14379 309 309 310 310 void 311 MyApp::onTorrentsAdded ( QSet<int>torrents)311 MyApp::onTorrentsAdded (const QSet<int>& torrents) 312 312 { 313 313 if (!myPrefs->getBool (Prefs::SHOW_NOTIFICATION_ON_ADD)) -
trunk/qt/app.h
r14272 r14379 58 58 void refreshPref (int key); 59 59 void refreshTorrents (); 60 void onTorrentsAdded ( QSet<int>);60 void onTorrentsAdded (const QSet<int>& torrents); 61 61 void onTorrentCompleted (int); 62 62 void onNewTorrentChanged (int); -
trunk/qt/details.cc
r14377 r14379 99 99 virtual ~PeerItem () {} 100 100 101 PeerItem (const Peer& p) 102 {103 peer = p;101 PeerItem (const Peer& p): 102 peer(p) 103 { 104 104 int q[4]; 105 105 if (sscanf (p.address.toUtf8 ().constData (), "%d.%d.%d.%d", q+0, q+1, q+2, q+3) == 4) … … 409 409 // myHaveLabel 410 410 double sizeWhenDone = 0; 411 double leftUntilDone = 0;412 411 double available = 0; 413 int64_t haveTotal = 0;414 int64_t haveVerified = 0;415 int64_t haveUnverified = 0;416 int64_t verifiedPieces = 0;417 412 if (torrents.empty ()) 418 413 { … … 421 416 else 422 417 { 418 double leftUntilDone = 0; 419 int64_t haveTotal = 0; 420 int64_t haveVerified = 0; 421 int64_t haveUnverified = 0; 422 int64_t verifiedPieces = 0; 423 423 424 foreach (const Torrent * t, torrents) 424 425 { … … 842 843 { 843 844 const QString key = idStr + ":" + peer.address; 844 PeerItem * item = (PeerItem*) myPeers.value (key, 0);845 PeerItem * item = static_cast<PeerItem*> (myPeers.value (key, 0)); 845 846 846 847 if (item == 0) // new peer has connected -
trunk/qt/file-tree.cc
r14377 r14379 624 624 bool updateFields) 625 625 { 626 bool added = false;627 626 FileTreeItem * item; 628 627 QStringList tokens = filename.split (QChar::fromLatin1('/')); … … 652 651 else // we haven't build the FileTreeItems for these tokens yet 653 652 { 653 bool added = false; 654 654 655 item = myRootItem; 655 656 while (!tokens.isEmpty()) -
trunk/qt/filterbar.cc
r14377 r14379 286 286 namespace 287 287 { 288 QString readableHostName (const QString host)288 QString readableHostName (const QString& host) 289 289 { 290 290 // get the readable name... -
trunk/qt/mainwin.cc
r14377 r14379 1413 1413 1414 1414 void 1415 TrMainWindow::errorMessage (const QString msg)1415 TrMainWindow::errorMessage (const QString& msg) 1416 1416 { 1417 1417 myErrorMessage = msg; -
trunk/qt/mainwin.h
r14241 r14379 122 122 void dataSendProgress (); 123 123 void onError (QNetworkReply::NetworkError); 124 void errorMessage (const QString );124 void errorMessage (const QString&); 125 125 void toggleWindows (bool doShow); 126 126 void onSetPrefs (); -
trunk/qt/torrent-model.cc
r14377 r14379 144 144 QSet<int> addIds; 145 145 QSet<int> newIds; 146 int updatedCount = 0;147 146 148 147 if (isCompleteList) … … 173 172 { 174 173 tor->update (child); 175 ++updatedCount;176 174 if (tor->isMagnet() && tor->hasMetadata()) 177 175 {
Note: See TracChangeset
for help on using the changeset viewer.