- Timestamp:
- May 3, 2016, 5:25:45 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 175
- Property svn:mergeinfo changed
-
smplayer/trunk/src/findsubtitles/findsubtitlesconfigdialog.cpp
r165 r176 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 25 25 setupUi(this); 26 26 27 #ifdef FS_USE_PROXY 27 28 proxy_type_combo->addItem( tr("HTTP"), QNetworkProxy::HttpProxy); 28 29 proxy_type_combo->addItem( tr("SOCKS5"), QNetworkProxy::Socks5Proxy); … … 36 37 "as plain text in the configuration file.") ); 37 38 proxy_type_combo->setWhatsThis( tr("Select the proxy type to be used.") ); 39 #else 40 proxy_group->hide(); 41 #endif 42 43 #ifndef OS_SEARCH_WORKAROUND 44 retries_label->hide(); 45 retries_spin->hide(); 46 #endif 47 48 #ifndef DOWNLOAD_SUBS 49 misc_group->hide(); 50 #endif 38 51 39 52 layout()->setSizeConstraint(QLayout::SetFixedSize); … … 51 64 } 52 65 66 #ifdef OS_SEARCH_WORKAROUND 67 void FindSubtitlesConfigDialog::setRetries(int n) { 68 retries_spin->setValue(n); 69 } 70 71 int FindSubtitlesConfigDialog::retries() { 72 return retries_spin->value(); 73 } 74 #endif 75 76 #ifdef DOWNLOAD_SUBS 77 void FindSubtitlesConfigDialog::setAppendLang(bool b) { 78 addlang_check->setChecked(b); 79 } 80 81 bool FindSubtitlesConfigDialog::appendLang() { 82 return addlang_check->isChecked(); 83 } 84 #endif 85 86 #ifdef FS_USE_PROXY 53 87 void FindSubtitlesConfigDialog::setUseProxy(bool b) { 54 88 use_proxy_check->setChecked(b); … … 101 135 return proxy_type_combo->itemData(index).toInt(); 102 136 } 137 #endif 103 138 104 139 #include "moc_findsubtitlesconfigdialog.cpp"
Note:
See TracChangeset
for help on using the changeset viewer.