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 QApplication::setOverrideCursor( Qt::ArrowCursor );
66 *ok = exec() == QDialog::Accepted;
67 QgsDebugMsg( QString(
"exec(): %1" ).arg( *ok ?
"true" :
"false" ) );
69 QApplication::restoreOverrideCursor();
73 *username = leUsername->text();
74 *password = lePassword->text();