C++ (Qt)messageBox->setText( "%1 %2 %3" ).arg( foo->errorString() ).arg( url ).arg( foo->errorDescription() );
C++ (Qt)typedef QLatin1String __;...QString msg = __(response.data.findChild("msg").data())emit inferiorStartFailed(msg);...connect(m_gdbAdapter, SIGNAL(inferiorStartFailed(QString)), this, SLOT(handleInferiorStartFailed(QString)));...void GdbEngine::handleInferiorStartFailed(const QString &msg){ if (state() == AdapterStartFailed) return; // Adapter crashed meanwhile, so this notification is meaningless. debugMessage(_("INFERIOR START FAILED")); showMessageBox(QMessageBox::Critical, tr("Inferior start failed"), msg); setState(InferiorStartFailed); shutdown();}