25 : QDialog( parent, fl )
31 Qt::BlockingQueuedConnection );
41 if ( qApp->thread() != QThread::currentThread() )
45 QgsDebugMsg( QString(
"signal returned %1 (username=%2, password=%3)" ).arg( ok ?
"true" :
"false" ).arg( username ).arg( password ) );
57 labelRealm->setText( realm );
58 leUsername->setText( *username );
59 lePassword->setText( *password );
60 labelMessage->setText( message );
61 labelMessage->setHidden( message.isEmpty() );
63 if ( !leUsername->text().isEmpty() )
64 lePassword->setFocus();
66 QApplication::setOverrideCursor( Qt::ArrowCursor );
69 *ok = exec() == QDialog::Accepted;
70 QgsDebugMsg( QString(
"exec(): %1" ).arg( *ok ?
"true" :
"false" ) );
72 QApplication::restoreOverrideCursor();
76 *username = leUsername->text();
77 *password = lePassword->text();