Exemplo n.º 1
0
void VersionSelectDialog::loadList()
{
	TaskDialog *taskDlg = new TaskDialog(this);
	Task *loadTask = m_vlist->getLoadTask();
	loadTask->setParent(taskDlg);
	taskDlg->exec(loadTask);
}
Exemplo n.º 2
0
void MainWindow::doLogin ( QString inst, const QString& errorMsg )
{
	LoginDialog* loginDlg = new LoginDialog ( this, errorMsg );
	if ( loginDlg->exec() )
	{
		UserInfo uInfo ( loginDlg->getUsername(), loginDlg->getPassword() );

		TaskDialog* tDialog = new TaskDialog ( this );
		LoginTask* loginTask = new LoginTask ( uInfo, inst, tDialog );
		connect ( loginTask, SIGNAL ( loginComplete ( QString, LoginResponse ) ),
		          SLOT ( onLoginComplete ( QString, LoginResponse ) ), Qt::QueuedConnection );
		connect ( loginTask, SIGNAL ( loginFailed ( QString, QString ) ),
		          SLOT ( onLoginFailed( QString, QString ) ), Qt::QueuedConnection );
		tDialog->exec ( loginTask );
	}
}