Changeset 11052
- Timestamp:
- Jul 25, 2010, 5:16:03 PM (12 years ago)
- Location:
- trunk/qt
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/app.h
r10775 r11052 16 16 #include <QApplication> 17 17 #include <QTimer> 18 #include "favicon.h" 18 19 19 20 class Prefs; … … 33 34 public: 34 35 void raise( ); 36 37 public: 38 Favicons favicons; 35 39 36 40 private: -
trunk/qt/qtr.pro
r10933 r11052 31 31 FORMS += mainwin.ui 32 32 RESOURCES += application.qrc 33 SOURCES += about.cc app.cc dbus-adaptor.cc details.cc file-tree.cc filters.cc \ 34 formatter.cc hig.cc license.cc mainwin.cc make-dialog.cc options.cc \ 35 prefs.cc prefs-dialog.cc qticonloader.cc relocate.cc session.cc \ 36 session-dialog.cc squeezelabel.cc stats-dialog.cc torrent.cc \ 37 torrent-delegate.cc torrent-delegate-min.cc torrent-filter.cc \ 38 torrent-model.cc triconpushbutton.cc utils.cc watchdir.cc 33 SOURCES += about.cc app.cc dbus-adaptor.cc details.cc favicon.cc file-tree.cc \ 34 filters.cc formatter.cc hig.cc license.cc mainwin.cc \ 35 make-dialog.cc options.cc prefs.cc prefs-dialog.cc qticonloader.cc \ 36 relocate.cc session.cc session-dialog.cc squeezelabel.cc \ 37 stats-dialog.cc torrent.cc torrent-delegate.cc \ 38 torrent-delegate-min.cc torrent-filter.cc torrent-model.cc \ 39 triconpushbutton.cc utils.cc watchdir.cc 39 40 HEADERS += $$replace(SOURCES, .cc, .h) 40 41 HEADERS += speed.h types.h -
trunk/qt/torrent.cc
r11047 r11052 20 20 #include <QString> 21 21 #include <QStyle> 22 #include <QUrl> 22 23 #include <QVariant> 23 24 … … 544 545 QStringList list; 545 546 tr_benc * child; 546 while(( child = tr_bencListChild( trackers, i++ ))) 547 if( tr_bencDictFindStr( child, "announce", &str )) 547 while(( child = tr_bencListChild( trackers, i++ ))) { 548 if( tr_bencDictFindStr( child, "announce", &str )) { 549 dynamic_cast<MyApp*>(QApplication::instance())->favicons.add( QUrl(str) ); 548 550 list.append( QString::fromUtf8( str ) ); 551 } 552 } 549 553 if( myValues[TRACKERS] != list ) { 550 554 myValues[TRACKERS].setValue( list );
Note: See TracChangeset
for help on using the changeset viewer.