- Timestamp:
- Apr 30, 2012, 7:09:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/findsubtitles/findsubtitleswindow.cpp
r127 r130 40 40 #include "quazip.h" 41 41 #include "quazipfile.h" 42 42 43 #include <QTemporaryFile> 43 44 #include <QBuffer> … … 130 131 131 132 file_downloader = new FileDownloader(this); 132 file_downloader->setModal(false);133 file_downloader->setModal(false); 133 134 connect( file_downloader, SIGNAL(downloadFailed(QString)), 134 135 this, SLOT(showError(QString)), Qt::QueuedConnection ); 135 136 connect( file_downloader, SIGNAL(downloadFinished(const QByteArray &)), 136 137 this, SLOT(archiveDownloaded(const QByteArray &)), Qt::QueuedConnection ); 138 139 137 140 #endif 138 141 … … 204 207 language_filter->clear(); 205 208 206 QMap<QString,QString> l = Languages::list(); 207 QMapIterator<QString, QString> i(l); 208 while (i.hasNext()) { 209 i.next(); 210 language_filter->addItem( i.value() + " (" + i.key() + ")", i.key() ); 211 } 209 QMap<QString,QString> l1 = Languages::most_used_list(); 210 QMapIterator<QString, QString> i1(l1); 211 while (i1.hasNext()) { 212 i1.next(); 213 language_filter->addItem( i1.value() + " (" + i1.key() + ")", i1.key() ); 214 } 215 language_filter->addItem( tr("Portuguese - Brasil") + " (pb)", "pb"); 212 216 language_filter->model()->sort(0); 217 218 219 220 221 222 223 224 225 226 227 228 229 213 230 language_filter->insertItem( 0, tr("All"), "*" ); 231 232 233 214 234 //language_filter->setCurrentIndex(language_index); 215 235 language_filter->setCurrentIndex(language_filter->findData(current_language)); … … 546 566 if (ok) extracted_count++; 547 567 } 548 status->setText(tr("% 1 subtitle(s) extracted","", extracted_count).arg(extracted_count));568 status->setText(tr("%extracted_count)); 549 569 if (extracted_count > 0) { 550 570 emit subtitleDownloaded( output_path +"/"+ files_to_extract[0] ); … … 596 616 597 617 return true; 618 619 620 621 622 623 624 625 626 627 628 629 630 598 631 } 599 632
Note:
See TracChangeset
for help on using the changeset viewer.
