Changeset 8f2dc55470a22af908c8b4070e85ce5e27d37f01

Show
Ignore:
Timestamp:
10/19/07 12:30:34 (11 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1192789834 +0000
git-parent:

[0a90b9b0ce696148940522698703ad0ed73ea7f5]

git-author:
Rafaël Carré <funman@videolan.org> 1192789834 +0000
Message:

qt4: fix the use of HTTP in open dialog

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/components/open.cpp

    r2d38cb0 r8f2dc55  
    424424        case 0: 
    425425            mrl = "http://" + addr; 
     426            emit methodChanged("http-caching"); 
     427            break; 
    426428        case 1: 
    427429            mrl = "https://" + addr; 
  • modules/gui/qt4/components/simple_preferences.cpp

    rb96c13d r8f2dc55  
    3535 
    3636#include <vlc_config_cat.h> 
     37#include "vlc_control.h" 
    3738 
    3839#include <QString> 
     
    244245                 volNormalizer ); 
    245246         CONFIG_GENERIC( "audio-visual" , Module , NULL, visualisation); 
     247 
     248 
     249        if( control_Exists( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) 
     250            ui.lastfm->setCheckState( Qt::Checked ); 
     251        else 
     252            ui.lastfm->setCheckState( Qt::Unchecked ); 
     253        CONNECT( ui.lastfm, stateChanged( int ), this , lastfm_Changed( int ) ); 
     254 
     255         CONFIG_GENERIC( "lastfm-username", String, ui.lastfm_user_label, 
     256                         lastfm_user_edit ); 
     257         CONFIG_GENERIC( "lastfm-password", String, ui.lastfm_pass_label, 
     258                         lastfm_pass_edit ); 
    246259        END_SPREFS_CAT; 
    247260 
     
    376389{} 
    377390 
     391void SPrefsPanel::lastfm_Changed( int i_state ) 
     392{ 
     393    if( i_state == Qt::Checked ) 
     394        control_Add( VLC_OBJECT( p_intf ), "audioscrobbler" ); 
     395    else if( i_state == Qt::Unchecked ) 
     396        control_Remove( VLC_OBJECT( p_intf ), "audioscrobbler" ); 
     397} 
  • modules/gui/qt4/components/simple_preferences.hpp

    rb96c13d r8f2dc55  
    8383private slots: 
    8484    void AudioDeviceChanged(); 
     85    void lastfm_Changed( int ); 
    8586}; 
    8687 
  • modules/gui/qt4/ui/sprefs_audio.ui

    rb96c13d r8f2dc55  
    88    <y>0</y> 
    99    <width>461</width> 
    10     <height>554</height> 
     10    <height>682</height> 
    1111   </rect> 
    1212  </property> 
     
    238238        <property name="alignment" > 
    239239         <set>Qt::AlignRight</set> 
     240        </property> 
     241       </widget> 
     242      </item> 
     243     </layout> 
     244    </widget> 
     245   </item> 
     246   <item> 
     247    <widget class="QGroupBox" name="groupBox_4" > 
     248     <property name="title" > 
     249      <string>_("Last.fm")</string> 
     250     </property> 
     251     <layout class="QGridLayout" > 
     252      <item row="0" column="0" colspan="2" > 
     253       <widget class="QCheckBox" name="lastfm" > 
     254        <property name="text" > 
     255         <string>_("Enable")</string> 
     256        </property> 
     257       </widget> 
     258      </item> 
     259      <item row="1" column="1" colspan="2" > 
     260       <widget class="QLineEdit" name="lastfm_user_edit" /> 
     261      </item> 
     262      <item row="1" column="0" > 
     263       <widget class="QLabel" name="lastfm_user_label" > 
     264        <property name="text" > 
     265         <string>_("Username")</string> 
     266        </property> 
     267       </widget> 
     268      </item> 
     269      <item row="2" column="0" > 
     270       <widget class="QLabel" name="lastfm_pass_label" > 
     271        <property name="text" > 
     272         <string>_("Password")</string> 
     273        </property> 
     274       </widget> 
     275      </item> 
     276      <item row="2" column="1" colspan="2" > 
     277       <widget class="QLineEdit" name="lastfm_pass_edit" > 
     278        <property name="echoMode" > 
     279         <enum>QLineEdit::PasswordEchoOnEdit</enum> 
    240280        </property> 
    241281       </widget>