Commit 4f31c784 authored by Rafaël Carré's avatar Rafaël Carré

qt4: control_(Add/Remove/Exists) are not ready yet. (and btw, the previous...

qt4: control_(Add/Remove/Exists) are not ready yet. (and btw, the previous commit also introduced last.fm settings in the simple preferences)
parent 8f2dc554
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "ui/sprefs_interface.h" #include "ui/sprefs_interface.h"
#include <vlc_config_cat.h> #include <vlc_config_cat.h>
#include "vlc_control.h"
#include <QString> #include <QString>
#include <QFont> #include <QFont>
...@@ -245,13 +244,13 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -245,13 +244,13 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
volNormalizer ); volNormalizer );
CONFIG_GENERIC( "audio-visual" , Module , NULL, visualisation); CONFIG_GENERIC( "audio-visual" , Module , NULL, visualisation);
#if 0
if( control_Exists( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) if( control_Exists( VLC_OBJECT( p_intf ), "audioscrobbler" ) )
ui.lastfm->setCheckState( Qt::Checked ); ui.lastfm->setCheckState( Qt::Checked );
else else
ui.lastfm->setCheckState( Qt::Unchecked ); ui.lastfm->setCheckState( Qt::Unchecked );
CONNECT( ui.lastfm, stateChanged( int ), this , lastfm_Changed( int ) ); CONNECT( ui.lastfm, stateChanged( int ), this , lastfm_Changed( int ) );
#endif
CONFIG_GENERIC( "lastfm-username", String, ui.lastfm_user_label, CONFIG_GENERIC( "lastfm-username", String, ui.lastfm_user_label,
lastfm_user_edit ); lastfm_user_edit );
CONFIG_GENERIC( "lastfm-password", String, ui.lastfm_pass_label, CONFIG_GENERIC( "lastfm-password", String, ui.lastfm_pass_label,
...@@ -390,8 +389,10 @@ void SPrefsPanel::clean() ...@@ -390,8 +389,10 @@ void SPrefsPanel::clean()
void SPrefsPanel::lastfm_Changed( int i_state ) void SPrefsPanel::lastfm_Changed( int i_state )
{ {
#if 0
if( i_state == Qt::Checked ) if( i_state == Qt::Checked )
control_Add( VLC_OBJECT( p_intf ), "audioscrobbler" ); control_Add( VLC_OBJECT( p_intf ), "audioscrobbler" );
else if( i_state == Qt::Unchecked ) else if( i_state == Qt::Unchecked )
control_Remove( VLC_OBJECT( p_intf ), "audioscrobbler" ); control_Remove( VLC_OBJECT( p_intf ), "audioscrobbler" );
#endif
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment