|
|
@ -238,15 +238,15 @@ bool Smb4KPasswordHandler::askpass( const TQString &workgroup, const TQString &h
|
|
|
|
KDialogBase::Ok, parent, name, true, true );
|
|
|
|
KDialogBase::Ok, parent, name, true, true );
|
|
|
|
|
|
|
|
|
|
|
|
TQFrame *frame = m_dlg->plainPage();
|
|
|
|
TQFrame *frame = m_dlg->plainPage();
|
|
|
|
TQGridLayout *tqlayout = new TQGridLayout( frame );
|
|
|
|
TQGridLayout *layout = new TQGridLayout( frame );
|
|
|
|
tqlayout->setSpacing( 5 );
|
|
|
|
layout->setSpacing( 5 );
|
|
|
|
tqlayout->setMargin( 0 );
|
|
|
|
layout->setMargin( 0 );
|
|
|
|
|
|
|
|
|
|
|
|
TQLabel *pixmap_label = new TQLabel( frame );
|
|
|
|
TQLabel *pixmap_label = new TQLabel( frame );
|
|
|
|
pixmap_label->setPixmap( DesktopIcon( "identity" ) );
|
|
|
|
pixmap_label->setPixmap( DesktopIcon( "identity" ) );
|
|
|
|
pixmap_label->adjustSize();
|
|
|
|
pixmap_label->adjustSize();
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->addWidget( pixmap_label, 0, 0, TQt::AlignCenter );
|
|
|
|
layout->addWidget( pixmap_label, 0, 0, TQt::AlignCenter );
|
|
|
|
|
|
|
|
|
|
|
|
TQString message;
|
|
|
|
TQString message;
|
|
|
|
|
|
|
|
|
|
|
@ -286,10 +286,10 @@ bool Smb4KPasswordHandler::askpass( const TQString &workgroup, const TQString &h
|
|
|
|
message_label->setText( message.stripWhiteSpace() );
|
|
|
|
message_label->setText( message.stripWhiteSpace() );
|
|
|
|
message_label->setTextFormat( TQt::RichText );
|
|
|
|
message_label->setTextFormat( TQt::RichText );
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->addWidget( message_label, 0, 1, 0 );
|
|
|
|
layout->addWidget( message_label, 0, 1, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
TQLabel *user_label = new TQLabel( i18n( "User:" ), frame );
|
|
|
|
TQLabel *user_label = new TQLabel( i18n( "User:" ), frame );
|
|
|
|
tqlayout->addWidget( user_label, 1, 0, 0 );
|
|
|
|
layout->addWidget( user_label, 1, 0, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
KLineEdit *user_edit = NULL;
|
|
|
|
KLineEdit *user_edit = NULL;
|
|
|
|
KComboBox *user_combo = NULL;
|
|
|
|
KComboBox *user_combo = NULL;
|
|
|
@ -298,22 +298,22 @@ bool Smb4KPasswordHandler::askpass( const TQString &workgroup, const TQString &h
|
|
|
|
{
|
|
|
|
{
|
|
|
|
user_edit = new KLineEdit( frame, "AskPassUserEdit" );
|
|
|
|
user_edit = new KLineEdit( frame, "AskPassUserEdit" );
|
|
|
|
user_edit->setMinimumWidth( 200 );
|
|
|
|
user_edit->setMinimumWidth( 200 );
|
|
|
|
tqlayout->addWidget( user_edit, 1, 1, 0 );
|
|
|
|
layout->addWidget( user_edit, 1, 1, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
user_combo = new KComboBox( frame, "AskPassUserCombo" );
|
|
|
|
user_combo = new KComboBox( frame, "AskPassUserCombo" );
|
|
|
|
user_combo->setEditable( true );
|
|
|
|
user_combo->setEditable( true );
|
|
|
|
user_combo->setMinimumWidth( 200 );
|
|
|
|
user_combo->setMinimumWidth( 200 );
|
|
|
|
tqlayout->addWidget( user_combo, 1, 1, 0 );
|
|
|
|
layout->addWidget( user_combo, 1, 1, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQLabel *password_label = new TQLabel( i18n( "Password:" ), frame );
|
|
|
|
TQLabel *password_label = new TQLabel( i18n( "Password:" ), frame );
|
|
|
|
tqlayout->addWidget( password_label, 2, 0, 0 );
|
|
|
|
layout->addWidget( password_label, 2, 0, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
KLineEdit *pass_edit = new KLineEdit( frame, "AskPassPasswordEdit" );
|
|
|
|
KLineEdit *pass_edit = new KLineEdit( frame, "AskPassPasswordEdit" );
|
|
|
|
pass_edit->setEchoMode( KLineEdit::Password );
|
|
|
|
pass_edit->setEchoMode( KLineEdit::Password );
|
|
|
|
tqlayout->addWidget( pass_edit, 2, 1, 0 );
|
|
|
|
layout->addWidget( pass_edit, 2, 1, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
m_dlg->setMainWidget( frame );
|
|
|
|
m_dlg->setMainWidget( frame );
|
|
|
|
m_dlg->setFixedSize( 350, m_dlg->sizeHint().height() );
|
|
|
|
m_dlg->setFixedSize( 350, m_dlg->sizeHint().height() );
|
|
|
|