Ignore:
Timestamp:
May 3, 2016, 5:25:45 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.4

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/findsubtitles/findsubtitlesconfigdialog.cpp

    r165 r176  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2525        setupUi(this);
    2626
     27#ifdef FS_USE_PROXY
    2728        proxy_type_combo->addItem( tr("HTTP"), QNetworkProxy::HttpProxy);
    2829        proxy_type_combo->addItem( tr("SOCKS5"), QNetworkProxy::Socks5Proxy);
     
    3637           "as plain text in the configuration file.") );
    3738        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
    3851
    3952        layout()->setSizeConstraint(QLayout::SetFixedSize);
     
    5164}
    5265
     66#ifdef OS_SEARCH_WORKAROUND
     67void FindSubtitlesConfigDialog::setRetries(int n) {
     68        retries_spin->setValue(n);
     69}
     70
     71int FindSubtitlesConfigDialog::retries() {
     72        return retries_spin->value();
     73}
     74#endif
     75
     76#ifdef DOWNLOAD_SUBS
     77void FindSubtitlesConfigDialog::setAppendLang(bool b) {
     78        addlang_check->setChecked(b);
     79}
     80
     81bool FindSubtitlesConfigDialog::appendLang() {
     82        return addlang_check->isChecked();
     83}
     84#endif
     85
     86#ifdef FS_USE_PROXY
    5387void FindSubtitlesConfigDialog::setUseProxy(bool b) {
    5488        use_proxy_check->setChecked(b);
     
    101135        return proxy_type_combo->itemData(index).toInt();
    102136}
     137#endif
    103138
    104139#include "moc_findsubtitlesconfigdialog.cpp"
Note: See TracChangeset for help on using the changeset viewer.