[vlc-devel] commit: Remove old login dialog code ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Mar 7 23:12:39 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  8 00:12:26 2009 +0200| [cb3168c7fce60f68a5be955924679037c5279b80] | committer: Rémi Denis-Courmont 

Remove old login dialog code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb3168c7fce60f68a5be955924679037c5279b80
---

 modules/gui/qt4/dialogs/interaction.cpp |   29 +----------------------------
 1 files changed, 1 insertions(+), 28 deletions(-)

diff --git a/modules/gui/qt4/dialogs/interaction.cpp b/modules/gui/qt4/dialogs/interaction.cpp
index 7b9ab6d..71b46a9 100644
--- a/modules/gui/qt4/dialogs/interaction.cpp
+++ b/modules/gui/qt4/dialogs/interaction.cpp
@@ -72,28 +72,6 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
         i_ret = cancelBox.exec();
         msg_Dbg( p_intf, "Warning %i %i", i_ret, cancelBox.result() );
     }
-    else if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL )
-    {
-        dialog = new QWidget; layout = new QVBoxLayout( dialog );
-        layout->setMargin( 2 );
-        panel = new QWidget( dialog );
-        QGridLayout *grid = new QGridLayout;
-
-        description = new QLabel( qfu( p_dialog->psz_description ) );
-        grid->addWidget( description, 0, 0, 1, 2 );
-
-        grid->addWidget( new QLabel( qtr( "Login") ), 1, 0 );
-        loginEdit = new QLineEdit;
-        grid->addWidget( loginEdit, 1, 1 );
-
-        grid->addWidget( new QLabel( qtr("Password") ), 2, 0);
-        passwordEdit = new QLineEdit;
-        passwordEdit->setEchoMode( QLineEdit::Password );
-        grid->addWidget( passwordEdit, 2, 1 );
-
-        panel->setLayout( grid );
-        layout->addWidget( panel );
-    }
     else if( (p_dialog->i_flags & DIALOG_INTF_PROGRESS ) ||
              ( p_dialog->i_flags & DIALOG_USER_PROGRESS ) )
     {
@@ -223,12 +201,7 @@ void InteractionDialog::Finish( int i_ret )
     vlc_mutex_lock( p_dialog->p_lock );
 
     /* Special cases when we have to return psz to the core */
-    if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL )
-    {
-        p_dialog->psz_returned[0] = strdup( qtu( loginEdit->text() ) );
-        p_dialog->psz_returned[1] = strdup( qtu( passwordEdit->text() ) );
-    }
-    else if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL )
+    if( p_dialog->i_flags & DIALOG_PSZ_INPUT_OK_CANCEL )
     {
         p_dialog->psz_returned[0] = strdup( qtu( inputEdit->text() ) );
     }




More information about the vlc-devel mailing list